Stereotypes are based on statistics. Statistics are real.
Even if we assume young people are lazier. An employer doesn’t have to pick between lazy young person or hard working old person.
There are many more people seeking jobs than jobs available. This means even small & mediocre employers have the luxury of picking top talent.
So lets say 2000 people apply for a single vacancy (not too unrealistic) 1k are young 1k are old.
Assuming you are right, I’m still certain the top 10 (1%) of young people applying to the job have plenty good work ethic for the job, where even if an older person had better work ethic it wouldn’t be too noticeable in output.
After that point it would certainly be other factors from the youth which greatly triumph “work ethic”. Such as; youthful energy, the fact younger people are more eager to prove themselves early in their career, lack of family responsibilities, not going to retire soon etc etc…
In short, the top 1% of young employees will generally be a better pick than the top 1% of older workers, because both will probably produce similar output, but younger people are more attached to their jobs for the reasons above. And we are in a market where all employers can hire the top 10% or 1% due to the high applicants to vacancy ratio.
Of course it’s more nuanced than that, but I hope you get the point.