EASA license and medical are not affected by age, however, which jobs you can take on is, according to EASA rules, which in turn point to the current ICAO redommendations. I believe that is pretty much the whole justification, the rest is a political compromise as some european countries would love to restrict pilots to 60 years (currently only applicable to single pilot ops), others want no limit at all.