The employee's age represented a bona fide occupational qualification (BFOQ): that is, an older worker could not perform the job by virtue of his age.
Age qualifies as a BFOQ for pilots, who can't receive FAA certification if they're over age 65.