Countries with healthier populations in the 2010s were less likely to be affected by the pandemic’s hit to life expectancy.