As true with code as with pulling triggers. Work for the Feds and pull 150k around DC and a security clearance. Some of the seniors at big contractors pull big $$$. Meanwhile, you can get a total comp of 400k or more working for a FAANGM out west while smoking weed everyday and banging foreigners.
My understanding is that the SOF and SEALs get paid well, even as enlisted folks (who get paid less than officers), but why settle for an adequate paycheck when you can have a kick-ass one? Doubly so, since the kinds of people who become Spec Ops are hyper-motivated and deliver results.