Adding to what others have written, it's best not to associate grammatical gender too closely with natural gender. It will often lead you astray! Any correlation is arbitrary at best. After all, a belt or a bridge can be feminine in one language and one language and masculine in another, even one closely related! It's best to think of grammatical gender as just some set of arbitrary classes a word might belong to.