It's the same with gender in Spanish; dress is masculine, skirt feminine, shirt and blouse both feminine, as well as tie and jacket, trees are masculine, most words for car as well.. etc. etc.