If the world thirty years ago needed fewer software developers, then you'd have fewer 20 year old new software developers - and that strongly reduces the odds of having as many 50 year old developers today as 20 year old developers today.
Population has vastly increased as well, which affects all professions.
How many times has that automation resulted in the business saying "great, things are easier" instead of "great, that's quicker now, let's do more things with the time we freed up?" I've only seen the latter, which just breeds more* need for more automation.
You can see it in how much software the average business employee used 40 years ago vs today, even halfway through your timeline.
My father ran his two person business with spreadsheets, word processing, and games (haha) about 40 years ago.
I think people forget how much tech was around in the old days. Moon landing and SR-71 happened in the late sixties. Mythical Man Month talks of the software/PM angle and most chapters apply directly to today.
Ageism is a thing.
Then our field is somewhat unique because it's evolving extremely fast, I don't know about Lawyers and Doctors, but I doubt things change nearly as fast.
I used to teach CS. I routinely had to teach stuff I just learned a few years before, even in undergraduate classes. Sometimes I learned things from my students... In comparison, my 60 years old maths colleague has been teaching the same linear algebra class his whole life.