I've always assumed it's because the elderly are valuable assets in hunter/gatherer societies. Clans that had access to more knowledge/memory were more likely to survive in lean times.
There are examples in early hominid skeletons that the injured were nursed back to health and cared for.