It's the latter.
People going into software should plan accordingly. You get great wages to start, but you need to save some of those for a potentially risky mid-career transition where you specialize in a particular subfield.
Well this would be the root of the problem right here, not "experience doesn't matter after 10 years." That's nonsense. Experienced people with in-depth, cross-functional knowledge obtained from several, 5-8yr "sub careers" in various specialties can be worth their weight in gold.