I was told that the original "air marshals" were accidental, in that federal law enforcement laboratory personnel used to have badges and carried guns on planes while they transported evidence to trials they were attending. That priveldge was later withddrawn when one of them overstepped his authority and did a traffic stop, flashing his badge, and was reported. But that was many years before I was in the system (and more since I left).
Steve