Hm. Humans are built to identify with a group, absorb culture, and be uncertain and uneasy when not in their group or their culture. That can easily lead to treating different people differently, and to the conclusion.
It's not completely true though. We usually reserve the term for active, conscious acts. Not just unconscious bias. So maybe we need a new word for that?