Age does bring wisdom, at least for most. They look back at the stupid things they did in their twenties, and see twenty year olds doing the same as they did. Youth is wasted on the young.
Saying that youth are stupid and old are wise is nearsighted. Both play important roles. I would never ever voluntarily confine myself to a society where everyone is wise and no one does stupid things. Nor would I want that for my kids.
Yes both have important roles. The older you are the more experienced you are, while I expect societies would stagnate without the young. However I would myself like to be in a society where everyone was wise and didn’t do stupid, meaning harmful, things.