Age discrimination is present because, ceteris paribus, more experience means more knowledge and/or ability. Since humans can't deal well with a world where ceteris paribus conditions never (or rarely) hold, age is a simple and useful heuristic.