I think loneliness and shame have to be connected somehow. Loneliness–feeling pain and fear when alone–would have served evolutionarily (and by the way I don’t reject “evolution”: I simply believe some sort of biological field theories will be needed in order to explain how information is conveyed to the genetic code, and preserved. In my view, nothing else will suffice to explain observable changes. There has to be an informational place holder external to the physical code) to facilitate survival, since the alone would always be at a disadvantage relative to the tribe, and banishment a de facto sentence of at least a shortened life.
Categories