You think raising kids is free? The cost to raise a child including college is more expensive than end of life care for elderly.
($27k/ year California plus $14k/year for public school for a total of $41k per year for ages 5-18. Then college which is even more expensive.) That's a minimum of $800k.
That compares to $150k of full medical care for last 3 years for elderly. Before that they are self sufficient and have minimal costs.
https://bmcpalliatcare.biomedcentral.com/articles/10.1186/s12904-023-01197-2
And when elderly die, they free up resources for the next generation.