indeed. children, and even babies, judge based on what they see, hear, smell, and eventually, understand (and misunderstand). most if not all animals do this. it is a defense mechanism to be cautious of "the other". a throwback to more dangerous times in human evolution.
and even though we grow up into (hopefully) reasonable adults, we all still make these judgements. thankfully we have the ability to self reflect and make our minds more flexible. we can stop ourselves from foolish assumption if we choose, but it takes some practice and experience. i fully admit that at times i make judgements based on how someone looks when i should not.
I am a work in progress. we all are. we can achieve a more inclusive and less judgemental society, but it is going to take a lot of work including admitting some pretty harsh truths. people love to find faults in society and others but rarely in themselves. i know it is trite but the phrase "look in the mirror" seem appropriate, except we might want to add "hey everyone, look in the mirror".