That's probably true.
But you have to spend at least a little time with someone to judge their behavior.
The problem is that people are pre-judged based on their race, gender identity, sexual orientation, religious beliefs or lack thereof, nation of origin, first language, and a boatload of other things purely based on these factors without any personal contact or observation of their behavior.
Hence the word prejudice.
Likewise, people take the misbehavior of one or a small group and and apply it to everyone with the same characteristic.
Hence prejudice and stereotyping.
People who die while driving are almost all die by accident.
People who get shot are far more likely to be killed intentionally.