Those examples are legal entities with decision-making hierarchies and individuals with the power to exit the group and with limited liability.
Racial groupings are not even natural categories (there are tons of ways to divide people up by ethnicity).