La Patrie is feminine ??

Okok, so we were recently studying about the French revolution in history class and we learnt about the concept of "La Patrie" or "the fatherland", now I am a B1 student myself and it got me thinking that if it is "the fatherland" shouldn't it be masculine, so like "Le Patrie" as father is masculine ?? I am so confused