Words take on a cultural aura. In Spanish, all nouns have a gender. Everything is either masculine or feminine, but neither rhyme nor reason can tell which.
Would you guess the Spanish word for “necktie” is male or female? Even though neckties are in the men’s wear department, the word for necktie is “la corbata,” clearly feminine. You will do no better at guessing the gender of Spanish words for dress, book or window (masculine, masculine, feminine).