This is because in French, the word for "cat" is "le chat", which is masculine. "Un" is the indefinite article for masculine nouns.
This is because in French, the word for "cat" is "le chat", which is masculine. "Un" is the indefinite article for masculine nouns.