When you are alone, only YOU can hurt yourself. It gives oneself more control, in one sense, of what can or cannot happen. Around other people you have to compromise, perhaps not to your own benefit or desires. Around others you may have to sacrifice things you never wanted to, to keep them happy.
Being alone, also, does not immediately intend "loneliness". Just because someone is isolated, it does not automatically mean they feel lonely. A person who feels lonely is someone who seeks external fulfilment from others, in which case, obviously isolating themselves would be ironic then.
I also think that there are many things on the planet that can make someone want to feel alone, or want to be alone. Rape is a very strong example of something that would make someone appreciate the isolation, and appreciate the loneliness; because the want coming from others is what harmed them to begin with.
There, also, by the way, ARE drawbacks to having "millions" of companions. One of the major ones is never really knowing much about any of them, such a great number of people, means that you are unable to really get the time you need to understand and really know them all. It also means that the differences are much more vast, making a person outcast and more isolated.
Also, it means that there is intense competition, because there are just too many numbers, and only so many outcomes.