Postal inspectors and curators from the Smithsonian on their way to dust of some dinasour bones can carry guns on planes and that is AOK. But no way should pilots be allowed to carry a firearm.
Makes perfect sense to me.
If the pilots were federal employees they would be packing guns and no one would think any thing of it. (IMO)