Well, you only live once . . .
If one is in an unhappy situation, why stick around (wasting your life)? Sure, that might negatively impact the kid(s). It is true for most of us (Chinese), kids are so important. But you have your own life to live too . . .