We group nouns because there is a strong tendency for nouns to have only one sense (and hence gender) per discourse.
like others, they consider gender and number separately, only learning statistical gender for the masculine, feminine, and neutral classes.