Younger folks do not deliver the same quality, and go on unproductive goose/chases a lot more often. It takes years to develop the detail-oriented skills of quality software delivery. I know because I was one of them.
Would you say a new culinary grad delivered the same quality pizza as Jeff Varasano, who’s been honing a craft for multiple decades?
Now if you’re in a field that doesn’t require high quality, then cheaper makes sense. Let the market decide. Unfortunately it is inefficient due to biases. Oldies know their cv has a good chance of hitting the bin without a further look, if they have the grey hairs of experience.
> If I can hire someone to do the same work at the same quality level for less money, why wouldn’t I do this?
That makes sense. But what if the older developer has more experience and can demonstrate greater skill? People tend to become more skilled with more experience, and having been exposed to different technologies gives one a larger perspective to base decisions on. Also helps with challenging bugs, and knowing what sort of leaky abstractions the tower of modern software is built on top of.
The comments above tend to be about refusing to even consider hiring developers over a certain age despite whatever experience and skills they have, or treating them poorly because they are older.