SpaceX does not patent any of their stuff for the same reason; it can be stolen by people outside of the country and the patent is essentially directions on how to do so.
I forget the quote exactly, but there was an interview with Elon and the lady was asking him about not patenting things at SpaceX. He said something along the lines of "Patents aren't going to do you much good when your competitors are other country's governments".
"We have essentially no patents in SpaceX. Our primary long-term competition is in China—if we published patents, it would be farcical, because the Chinese would just use them as a recipe book."
I'm sure he's said it a few times. This is the one I was referring to -
> Even more so when he tells us that none of the design innovations in the rocket are patented. “Since our primary competitors are national governments, the enforceability of patents is questionable,”