Don’t know if it’s still true but there was a time when airline pilots started out in the Air Force or Navy.
These days I think it is likely a combination of both. From what I’ve read the retired 45 year old military pilot has to start off on the ground floor at airlines. It is a union thing....