A phrase which expresses mild sympathy for the plight of another, while implying greater relief that those circumstances have befallen someone other than the speaker.
The phrase is the American translation of the German 'schadenfreude', which denotes actual pleasure in the suffering of another.
Often used in meaning you have created the situation yourself and you should suffer for it for your own stupidity. Conservatives love to use it and imply it's a lack of 'personal responsibility' for the person under going the hardship or bad situation. It can also tie into darwinism and the idea it's survival of the most fit or having the most prepared minds.
A guy tells a woman online that he got divorced and now has to pay child support. She says, it's your own fault for not getting to know her better and it sucks to be you!