El dentista. El secretario. Why?

I know that dentist is el or la denista.

But I just found out that secretary is el secretario or la secretaria.

Is there a reason why some words change with the gender of the person but others don't?

submitted by /u/ActuaryEast
[link] [comments]