Studies like this always run into major biases because they're, by nature, observational. It's not like you can get a million people, make them not exercise, get another million and make them exercise, and then compare outcomes over 100 years.
So this poses big issues because of the 'a glass of wine a day is healthy' fallacy. The reason that was previously believed is that if you look at light drinkers, they tend to live longer than non-drinkers. But the real reason there is that people who aren't healthy (even if undiagnosed) tend to stop drinking, and so that bias alone drives lower life expectancy amongst non-drinkers as a whole.
Exact same thing here. Somebody's who's not well is not going to be hitting the gym regularly. So you don't know whether it's going to to the gym that's making people live longer, or whether the ability to go to the gym is suggestive of a longer life expectancy. To answer this you'd need to do an actual experiment of the sort that we cannot realistically do.
Similarly, the negative impact of obesity on covid outcomes was likely under-estimated because frail elderly people were more vulnerable than ones with a normal weight.
>I don't think this is quite true, you do have some control.
1) it's radically true for people with genetic defects. The kid born inside out has no control over their fate.
2) even for healthy people the genetics play a role larger than 50%[0]
So, yah you have some control if your genetic didn't burden you with a radical defect that touches mortality; but those are fairly common in the perspective of humanity -- but even without defects you only have 'one hand on the steering wheel' as far as longevity goes, it's still just mostly luck.
Studies show that regular exercise increases lifespan by an average of 4.7 years, even in individuals of healthy weight: https://journals.plos.org/plosmedicine/article?id=10.1371%2F...
And of course there are actions that decrease expected lifespan, like smoking/heavy drinking/hard drugs. So avoid those.