You don't usually realize that's why you're the way you are until much later.
At first it might feel like "these people don't like me cause of how much better I am than them", or "these people don't like me, well fuck them, I don't need anybody".
People have all kinds of excuses they tell themselves to feel better about the needs they can't satisfy.