Also I’m learning French and everything has a gender but I don’t see any pattern to it at all. Pizza is female, books are male, a suitcase is female, hats are male and so on.
Also in French, the names of numbers go absolutely mental once you go above about 50. That’s got nothing to do with gender but I want to complain it whenever I can.