People use stereotypes when they have no other better information to go on.
For example everyone hates when employers demand to know applicants' criminal backgrounds but when they forbid asking those questions employers discriminate more against black people.