Tom Brady Example
Genetics or environment or in this case lifestyle. According to Brady it is his trainer and masseuse. I always listen to the athlete rather than the pundits so I'll add this. His whole lifestyle that includes a special trainer and masseuse combine to make him a standout.
Federer has a similar intelligent approach that is aided by his playing style that is clearly low maintenance on the body versus say the physical game of Nadal.
If you want longevity work towards fewer injuries by not overtraining and also by choosing a lifestyle that includes rest, sleep, diet, and psychological balance. It appears both Brady and Federer follow this approach and it works for them.