It's for photographers as for everybody else. Experience improves with time, energy diminishes.
Somewhere the two lines cross and the diminishing returns from diminishing energy outweighs the increased experience.

Verdi wrote Falstaff, probably his masterpiece, when he was 80, in 1893.
Years later he accepted to work on the libretto Tosca, but after a while he gave it back because he couldn't work profitably any more. The libretto was proposed to Puccini who, as widely known, accepted

Il Gran Capitano, Prince Eugene of Savoy, fought his last battle at 72. With less than 30.000 men he brilliantly kept at bay a French army strong of 90.000. Age is an illusion of the mind.