The unconscious logic goes something like this: If I think, feel, or act in a wicked way, then I should be punished. I will criticize myself brutally, which will make me feel unlovable and worthless, which will motivate me to “try harder” and “do better.”