
Be/do something for your sins
Colloquial Usage
The phrase is casual and might be unclear in formal or non-UK English contexts. 
Not Literal
It's often used jokingly and doesn't usually imply serious wrongdoing. 
Figurative Punishment
The 'sins' are often minor mistakes, not actual severe offenses. 