Or the elderly would wander off on their own to die, after they perceived themselves to be a burden.
And need to consider that elderly being able to wander off is still good state today. They could very well survive with relatively affordable assisted living. But in some cases we are keeping people alive who can't even walk anymore.