It's better to raise kids in a functional committed relationship, ok really even a somewhat bad relationship is frankly probably better for the kids than divorce (but not necessarily for the adults).
But it's not the only thing that can go wrong in a family/in childhood. And it's definitely not the only thing that can go wrong in society.
I've heard things like child abuse have gone down over time. If so, that is one thing getting better.