Or based on a misunderstanding, but still coming from a real observation. For example in the US, apparently there used to be a stereotype that polish people are stupid, which came from language differences - polish immigrants had a lot more trouble with English than everyone else, or even were less likely to know any English.