Why
Too severe internal punishment, by guilt and shame, reduces motivation to do anything, including good, and too severe external punishment provokes retaliation. Both are immoral because they contradict the function of morality, increasing cooperation.