Peter N. Stearns said this quote

Shame, as an emotion, has a core meaning, in relating individuals to wider social groups and norms -- real or imagined.