Religiously, it's a punishment undergone in token of sorrow for sin
Yet if pain is a punishment for original sin, then one would assume it is 
wicked as... [DOC] [TLE] Modern History Sourcebook: Council of Trent: Catechism for Parish ... [PAR] The Means Required for Religious Instruction.