Loneliness can also be due to you feeling different. Maybe you’re passionate about xx, but everyone around you is more into yy.
The experience of being an outsider is typically extra tough if you grow up in a small town in the countryside, where you are, for example, the only one who dresses a certain way or is interested in a certain topic.