There's divorce, and then there's divorce.
No kids, not much of a problem. Economically, they're better off together, but ....
Unwed parents are a disaster for both society and the kid(s). It's pretty much a guarantee of long-term poverty.
Having kids is almost always a choice, a choice that has huge consequences.