"In a review of research on emotions and moral development, the psychologist Nancy Eisenberg suggests that shame emerges when parents express anger, withdraw their love, or try to assert their power through threats of punishment: Children may begin to believe that they are bad people. Fearing this effect, some parents fail to exercise discipline at all, which can hinder the development of strong moral standards."
Here is a very good read: Raising a Moral Child. https://www.nytimes.com/2014/04/12/opinion/sunday/raising-a-...