Stereotypes
We rarely have full information about a person or situation, so the brain fills gaps with what usually holds true for similar cases. Relying on categories, rules of thumb and trusted sources saves a huge amount of time and effort. For most of history, following the group and trusting experienced elders was a safe bet.