๐Humans experience loneliness because being alone used to be dangerous
Being alone used to be dangerous tens thousands years ago because you were more vulnerable and there was nobody to help you. Human is a tribe/social animal. This is why loneliness reaction has developed and it helps one to stay connected with other people.