And note that Navy (or Coast Guard) Captain is understandability a much higher rank than in the other services, O-6, Colonel elsewhere, the last rank before flag AKA General or Admiral. I can see an unofficial requirement for reaching O-6 before 40 for then being in the running for flag rank.