Religiously, it's a punishment undergone in token of sorrow for sin
... 
Sacrament of Penance; "The faithful must be fully aware that sin and its eternal 
punishment are remitted by the Sacrament ... there generally remains a temporal 
punishment to be undergone, either in this world or in Purgatory.