In my view, wisdom is gained by reflecting on what has been done, not by doing. Reflection is not a given at any age, but in my experience older people tend to afford more of their time to it.
Reflection is something you do. so by doing the action of reflection you can gain insight on what to do next time around.