I read GP's comment more along the lines of "loneliness is akin to a hunger that drives the lonely person towards seeking deeper personal connection with others". Similarly to how some people argue that "boredom is a gift" which leads to creativity[0]. Instead of placating that hunger with poor substitutes, be it TV, netflix, social media, drugs etc, that drive can serve as motivation to seek out connection, the lack of which is ultimately the root cause of the loneliness.
[0]https://www.bbc.com/culture/article/20200522-how-boredom-can...