Masochism + Virtue Signaling.
Luke 18 certainly provides a succinct summary of the latter.
Sanctimony and self-satisfaction are time-worn human failings. I can’t condone these attitudes, but I think I understand them pretty well.
Self-flagellation, on the other hand, gets into areas of psychology that are far beyond my understanding.
True.