Try making an effort maybe?
People wont talk to anyone that wont talk to them, you have to reach out and make friends for yourself.
Don't expect people to jump for joy and crowd around you if you wont even say hello to them, even just as a casual greeting.
The only people who are lonely are the ones who don't do anything about it.