Religiously, it's a punishment undergone in token of sorrow for sin
[DOC] [TLE] Penance - definition of penance by The Free Dictionary [PAR] An act of self-mortification or devotion performed voluntarily to show sorrow for a 
sin or other wrongdoing.