Religiously, it's a punishment undergone in token of sorrow for sin
[DOC] [TLE] A Study in the Psychology of Religious Phenomena - JStor [PAR] sin, repentance, remorse, aspirations toward holiness, regen- ... and on account 
of its paramount importance in religious life.