How so? Getting out of a bad marriage isn't unpleasant at all. A bit traumatic perhaps, but that's like going through the trauma of major surgery so you can have your badly broken leg bolted together so you don't have to get an amputation or die of infection. The feeling of freedom and peace you get after getting out is worth the trauma of divorce.
Same goes for getting out of a shitty job with bad coworkers or a bad boss.