Whenever you see another person, you make a snap judgment of them, looking for things that might be threatening, desirable, to be avoided etc. This sort of thing is harmless, unless you use it to build harmful schemas and stereotypes, which happens A LOT, and we really cannot control it. What we can do though, is recognize those feelings as wrong.
One other thing, we will sometimes make judgments to other people, comparing ourselves to them. Sometimes we compare upward, hoping to achieve what someone else has. Other times, to make ourselves feel better we judge downwards...this makes for a lot of the hurtful stuff.
Judgment is a really dicey subject. But I tried to do it justice