It has nothing to do with age discrimination. The mandatory retirement age for federal law enforcement officers is 57. You have to be given the opportunity to earn a 20 year retirement, hence the age 37 rule. It is the same for all federal agencies, FBI, DEA, USSS etc.