As a way for people to feel like they understand something that they really don't. The human mind will make all kinds of contraptions (religion etc.) as an attempt to rationalize and understand the unknown. I think stereotypes serve the same purpose.
They could exist in someones mind, make believe, not reality.