I think we all look to the people around us to compare our own actions and accomplishments. It's human nature and it isn't necessarily a bad thing in a general sense.
However, a lot of us — myself very much included — have a bad habit of taking that general comparison and turning it into outright judgement of ourselves as people. Which is very unhealthy.