I cannot help but think that companies dislike older people because they don't put up with that much bullshit.
You can underpay a young (naive) person, make them work 12+ hours a day, if they get disgruntled pacify them with a nerf gun fight or catered lunch. Older people might not go for gimmicks and ask for appropriate working hours and reasonable vacation time etc. That puts off the corporate types.