I don't think this is quite true, you do have some control.
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.
> Studies show that regular exercise increases lifespan by an average of 4.7 years
Aka 6% of an average US lifespan.