It doesn't just happen in schools. Unintentional or not, people may stand in your way throughout your life. Either way, if you use them as a reason to not try and reach your goals, you can only hurt yourself. When you're happier and more successful, they probably won't matter to you any more. Nobody is destined to sit in an office their entire lives, working under a boss they don't like for insubstantial money.
Nobody is destined to be an underachiever, or lonely.
There are always places and ways to make things better for you. For instance, if you're lonely, you might consider joining a club, or finding a local Internet chat community - it's a start. Or if you're stuck in a job you don't like, you could take an evening course and learn a skill to open doors to a career you'll enjoy. There is potential in everyone to have a better life. But you can always improve on what you have.