The NSA is made up of people. People don't always strictly follow rules when billions of dollars are on the line. FBI agents have been corrupted for much less. Also, if the NSA had this capability for many years it is pretty likely that other intelligence agencies found out at some point.
if they did have an exploit it's not like it's a secret you can put on a thumb drive and go plug into any computer and steal all the bitcoin. it still would require substantial computing resources to execute. is someone going to steal the NSA's top secret exploit then provision $10M of compute to steal bitcoin? you have to know you'd leave a huge digital trail doing that, if you could even come up with the millions in compute to fund the operation first. no way anyone smart enough to know how to execute this attack ever would