@Goku Black
It’s even odder in French, as some name of territories are male-gendered and other female-gendered without immediately apparent logic.
Take the US states, for example: California, both Carolinas, Florida, Georgia, Louisiana, Pennsylvania and both Virginias are female (French people say “la Californie”, “la Caroline du Nord”, “la Géorgie”, “la Virginie Occidentale”, etc.) and the rest are male (they’re referred as “le”, unless the state’s name starts with a vowel, in which case the “e” ends up elided as an apostrophe (ex: “l’Idaho”) — except for Hawaii and New York, which are never preceded with an article in French — in the latter’s case, it’s almost always referred as “l’État de New York”, to tell it apart from the city).
At the scale of the world, 95 countries are male, 102 are female (give or take one if you still say “la Birmanie” (Burma) instead of “le Myanmar”), plus among those, 15 are plural (like “les États-Unis d’Amérique”) and 17 don’t take an article (like Israel).