When one compromises in to doing work that's less difficult than one can be doing because it's what's necessary career wise, it's not surprising that one's mental alacrity declines.
There are certainly exceptional people that can do one kind of thing for work (or tenure), and at the same time publish significant work in a parallel field - but I think it's rare.
1. Cerebral atrophy affects left brain disproportionately more than the right 2. Math is predominantly a left-brain activity. 3. Ergo, short-term memory & dexterity with numbers generally degrades with age ( supposedly peaking at 25 & declining from then on).
Most math majors I've spoken to ( from prodigies to professors & people in between ) attest to the fact that they were much sharper when they were quite young. It isn't that they become dumber as they age, more like - they pick up a different kind of math to compensate for some of the other math that required them to exercise their symbolic manipulation skills at superior pace, which they have now lost.
I'm sure there's at least a bit of truth to the statement that mathematical discovery is, in general, easier for younger minds, but it seems to be an unnecessary and harmful trope to propagate.
Either you still have it, or you don't. Why does the Fields Medal care about age? If a 60 year old proves the Riemann Hypothesis, why is he or she ineligible? This happened notably with Andrew Wiles. He (indirectly) proved Fermat's Last Theorem and was rewarded a "special plaque" instead of the Fields Medal for the crime of waiting until after his 40th trip around the sun to work on it.
There's also the issue of economic pressure. We expect our young minds to solve "real problems" and to want to make a lot of money doing it. Pure mathematicians get to "hide" in academia when times are good and are often on the street when they aren't so good. In the absence of a focus on supporting the arts (including math) through patronage etc it is just hard for young people to get in the field. Older people have more time. Let them create without lowered expectations.
For a deeply beautiful subject with a lot of very smart people, this whole age thing is just scratch-your-head puzzling.