Understanding why loneliness exists can help ease it, say scientists