I'd say it's not "people who are often around other people are lonelier than people who are not", but rather "people who are lonely, feel lonelier when they're around other people."
I definitely relate to the latter. I can go for a long bike ride by myself and feel blissfully content, but standing in the corner at a social event where everyone else is having a good time is intensely lonely and isolating.