It's not necessarily. If you live long enough you die of things like Alzheimer's or diabetes, chronic lived disease, e.g which are incredibly expensive.
Yeah I actually looked up whether preventive is cheaper, and while it may be in some cases not in all. It does sound overall BETTER though because it will result in better health outcomes. but the aging population is obviously a massive drain on medical costs and theres not much we can do