Yeah they miss out on a lot of good talent. Most programmers in my team are older than 32 and they're amazing!
Knowledge and professional experience are not properly reflected by age. Naïveté and lower expectations however usually are, which may explaing agist hiring preferences.
On the other hand, somebody that has deeply learned their craft and is still actively learning makes a very attractive employee. Age and number of years on the job by themselves say nothing about ability.