You see, unpopular people are people who have not learned to play the game successfully. There are two competitions going on in schools:
1. Be as good as you can be socially 2. Be as good as you can be regarding intellectual development
Every student will want to have the maximum of both those things, but the problem is that most people tend to choose one path and then work to excel at it. The most popular kids are as likely to be just as successful as the most intelligent nerds. It takes a bit of skill from the other branch to land at the top of either branch, and so those at the top will usually be successful people.
The problem is that these two branches seem to be exclusive. To be intellectually at the top, you have to forgo a lot of the social activities that allow you develop the necessary skills to get to the top of social ladder. And to be socially at the top, you lack the time to study, so you fall behind intellectually.
This is not about school in general - it's about life. To develop a skill, you need to focus on the skill, and your social life drops correspondingly.
But there is this middle ground. The people who know how to strike that balance between the two paths. The ones who are aware of the social hierarchies, and who make sure they do not drop in value socially. The popular kids who spend enough time studying, that their scores still remain good enough for them to do what they want to do.
There are a LOT of people who belong to that middle ground. But you know what, they don't write articles on the internet, because they have nothing to complain about! They liked high school and ended up doing well there. A lot of them are doing way better than the nerds who complain about how unpopular they were.
High school was your first taste of business. In business you need to develop your product, but you also need to make your sales. You cannot concentrate on one exclusively and leave the other away. Both require equal time and are equally important.
That's what these nerds don't recognize. They think there is some conspiracy against them - no, you just did not understand the system well enough to play it properly. If you went back in time now, would you not be able to do it better?