NASA and the military have a long, close and contentious relationship. Remember, NASA does few things internally. It outsources most of the manufacturing to other companies. Which companies? Why the very same companies that comprise the military-industrial complex. The Shuttle was a joint Air Force / NASA program (that wasn't terribly smart but that is another story). Many NASA positions require military security clearances.
All of NASA's boosters derived from military stock.
At a lot of levels, they are one in the same.