Where do Stereotypes Come from?

Stereotypes are said to come from ignorant people. Stereotypes are completely unrealistic and biased so you can see why ignorant people would develop them.