But "you gotta die of something", so when one cause drops in rate, another rises. So if you're stubborn (lucky) enough not to die of anything else, it'll probably be either cancer or heart-related that gets you: up from 12% of all deaths in 1900 to 47% in 2010.[1]
In short, we're more likely to die of affluence diseases[2] if we're not dying of poverty diseases.[3]
[1] https://demography.cpc.unc.edu/2014/06/16/mortality-and-caus...
edit: And also maybe general life style differences regarding availability and richness of food, exercise, shorter life spans etc.
Life expectancy @ 5y.o. (not sure about the exact age, but > 1y.o. is fine) is a better value to compare
So yes, modern medicine is a Herculean effort in many ways. One of them is that it saves so many of our otherwise very frail and helpless children.
Farmers and middle-to-lower class people only 90 years ago (as per my grandmother) in my region where mainly eating potatoes, grain, and meat, veggies and fruit were usually only eaten for sundays, since it was more expensive on the market.
That doesn't sound like the pinnacle of healthy diets.
Even farther back, people ate whatever they found or farmed with very little variety. If you don't get old, you can have some very unhealthy diets without much ill effect. Diets around the world in the pre-industrial era have ranged from 100% meat to 0% meat, with grain fruit and starches also ranging all over the 100%-0% scale.