It means that, as
researchers at the Mayo Clinic concluded, “Most studies have shown that religious involvement and spirituality are associated with better health outcomes, including greater longevity, coping skills, and health-related quality of life (even during terminal illness) and less anxiety, depression, and suicide. - https://www.forbes.com/sites/nicolefisher/2019/03/29/science-says-religion-is-good-for-your-health/
I was mostly kidding, but still, it depends on how sick or alone the person is in the last years- im sure not all the people questioned or studied were specimens of perfect health at old ages. Although they will still likely have a better outlook on life than others even if stuck alone and sick.