My mother was like this. She was convinced that she didn’t deserve to have anything good happen to her. Every bad thing and hardship that befell her was God’s will and her fault for being imperfect. Every good thing that happened was something she didn’t deserve. Eventually she killed herself.