Society keeps encouraging a lifestyle with less and less responsibility.
The government takes care of you (until you start bringing in profits), your employer takes care of you (with no raises). Everything seems engineered to coddle people without making them realise what they're missing. I feel most people are basically unaware cattle, happy to stay in their comfort zone and to keep producing what they tell them to.
Sexual promiscuity is cool, relationships don't last, having kids is a suicide, you're a victim.
A lot of the shitty parents have way deeper problems than this. The ones doing ok are probably glad they get to use their judice and they enjoy the freedom that comes with responsibility (without forgetting the obligations).
I believe there is a similar function in marriages, parenting, and other relationships -- the act of working through challenges makes you a "better" person at least in the regards of perspective, negotiation, less selfishness etc.
Of course, like basically everything in every discussion, there are exceptions but lets not focus on those because it makes it difficult to talk about anything save for physical laws.
Personally, I'm shocked at how just having kids has healed a lot of my held resentment. I used to look back at moments in my life that I wished had gone differently. Now I see that if you gave me a time machine and the chance to go back and change how I responded, I can't do it because I'd be erasing my kids.
I wouldn't even be able to stop the covid pandemic, selfish as that may be.
I understand it was hyperbole, but I would suggest one possible application of having and throwing everything you've got at raising children[1] to help with aimlessness/meaninglessness/purposelessness. Particularly when they're your own the common experience is your instinct/genome takes over and you'll find great imperative to do things you couldn't do for yourself. I learned about this concept from Jordan Peterson who also notes it works with pets[2]. For any bit of resentment about how the world has treated you, pouring yourself into someone else can at least give the solace that for them they will not suffer as much as you have, or at least not in the same insanity producing cyclical way as you had.
[1]: (technically can also be someone else's like foster, adopt, church, mentor, nephews/nieces) .
[2]: he talks about how people more frequently fill prescriptions for pets than for themselves.