However, there's no concrete evidence that he actually said it. It's possible it's a misattribution or a paraphrase of something he said.
Regardless of the origin, the quote is a humorous observation on the way society sometimes treats its elderly, especially those who have achieved some degree of fame or notoriety. It suggests that their value lies more in their historical significance than in their present-day contributions.