One of humanity's greatest questions is "Why do bad things happen to good people?"
The inconvenient truth, of course, is that the universe is cold and uncaring, and random chance and statistics means that bad things will happen.
But we humans hate that answer. We crave structure, patterns, cause and effect, order. Why did flooding destroy a city? You must have angered the gods with your sinful ways! There we go. Cause and effect. Peace of mind. Rules have been created. The universe makes sense again.
Why do young people get cancer? They ate the wrong food! They didn't exercise enough! They didn't fight the cancer! They did this, they didn't that. Cause and effect. They broke the rules. And as long as I don't break the rules, bad things will not happen to me. I will never anger the gods, eat the wrong food, or forget to exercise, and those who do, they're immoral and deserve the bad things that happen to them!
And that is why this is a morality play.
The morality of not taking care of oneself is subjective, of course.
Edit: I should say I lost a sibling to incurable cancer at a young age. I have heard no end of useless advice about her diet, special almonds, clinics, etc. So I strongly believe in not sharing advice that helps a majority when talking to a particular person, even though I know there are ways to live that reduce likelihood of some cancers.
"having a BMI between 30 and 35 shortened life by an average of 0–1 years, having a BMI between 35 and 40 shortened life by 1–3 years, and having a BMI above 40 shortened life by 1–7 years"
(This is easily googlable, I don't want to turn this message into a journal article)
Note that the error bars on the effect are quite large (1 to 7 years even for extreme obesity). Now it's true that a lot of things hide in an "average", and there is a lot to discuss here, and I am definitely not discouraging anybody from acquiring healthy habits and lifestyle, but... it's just not a simple story of reward for virtue and punishment for sins. Genetic factors which we have no control over probably have a greater effect. Which is not a story that people want to hear.
However, I don't know if I would give too much thought to the effect for low BMI - it could just be that people with extremely low BMI tend to have some disease process which causes that; only a small minority of them are rail-thin athletes. For high and extremely high BMI, there are known causal mechanisms for disease, so it's a different story.
Fundamentally, actually shrinking that error bar for many diseases is one of the biggest hard science and math problems of the future.
It's going to be so exciting!
Respectfully, I haven't said anything about living until a very old age. I am only talking about a few diseases and I understand there are a lot of ways to die. I have also said the morality of not trying to extend lifespan is subjective.