Children of divorce can grow up to be good partners and mothers and fathers. It doesn't necessarily come naturally. It may take extra time, attention and focus. But going about making successful family relationships is a skill that can be learned.
One little-mentioned reason for a dying marriage is boredom. It's usually unlikely that one partner is wholly responsible. But it is easier to blame someone else and to find excitement on the other side of the fence.