There's a few of them at every airline. Doctors too, although they tend to practice medicine on the side on a part time contract basis.
When times are good, various professionals flock to the airlines, military officers flow back and forth freely at will due to federal legal protections. When times are bad, some of them go back to what they were doing before.
Good idea to maintain the ability to go back if you ever need to.