AFAIK most societies historically respected the wisdom attributed to old age, and many cultures still do.
I am glad that in my country people retire and fuck off to spend their last days on holiday. Spending their accumulated wealth has become a major engine of the national economy.
In times of rapid technological development, the old are not wise. They are reactionary and cannot adapt. Their brain stopped developing before the internet. To expect them to make adequate decisions for the current landscape is to expect them to understand a world they simply weren’t built for.
A lot of older people are more adaptable, have a better understanding of technology. The older you are the more change you will have experienced.
Just because it’s ageist doesn’t mean it’s wrong.