Ageism. Yes, there are 50 year old devs that are on the cutting edge of their field, and still doing well, but by 40 you're looked at with increased skepticism if you haven't made your way into management
It seems like an irrational made up meme that risks becoming a self full filling prophecy. Much like the view that the only qualified interviews are Google interviews.