Except NASA funded and helped create SpaceX.

Here are some of their contributions,

> The injector at the heart of Merlin is of the pintle type that was first used in the Apollo Lunar Module landing engine (LMDE).

> To meet that need, in 1994, just as Fastrac was getting underway, Majumdar began developing the Generalized Fluid System Simulation Program, or GFSSP, which was first used by the Agency’s analysts in October 1996. NASA employees used the software for the Fastrac turbopump, and even though the program was cancelled in the early 2000s, the turbopump became the predecessor for others like it, such as SpaceX’s Merlin rocket engines, which power the company’s Falcon 9 commercial launch vehicle.

> The basic principles of the Fastrac design (namely, a pintle injector and ablatively cooled chamber) lived on in SpaceX's Merlin 1A engine, which used a turbopump from the same subcontractor.[18] The Merlin-1A was somewhat larger with a thrust of 77,000 lbf (340 kN) versus 60,000 lbf (270 kN) for Fastrac. The same basic design was capable of much higher thrust levels after upgrading the turbopump. Variants of the Merlin-1D achieve 190,000 lbf (850 kN) of thrust as of May, 2018,[19] though the combustion chamber is now regeneratively cooled.[20]

https://en.wikipedia.org/wiki/Fastrac_(rocket_engine)

> Hackler: Did NASA share any technological types of lessons learned that influenced your vehicle?

> Giger: Yes, Mike Horkachuck and Warren Ruemmele were very good about looking at our system, seeing how it was similar or dissimilar to Shuttle, Apollo, Mercury, Gemini, any other program in history, and trying to share those lessons learned. For example, parachutes. We were able to get a lot of data from the Apollo Program, from the Orion Program even, and leverage lessons learned from them on that.

> A lot of joint technologies, too. We learned about PICA, Phenolic Impregnated Carbon Ablator tiles that we use on our heat shield, which was originally developed in conjunction with NASA. We learned a lot from how they did that, and they helped us bring that technology in house, which was great. Now we build our own variant of that in-house. There were numerous kinds of examples of that, where they shared technology or lessons learned that we then either incorporated in the design, or took that technology to the next level here, which was great.

Much of the materials technology, engine design, engineering simulations etc. at SpaceX were derived from NASA expertise and knowledge. Furthermore, this was all done largely on NASA's dime. NASA gave SpaceX an extremely favourable deal and is its single largest investor.

> Fourth, we took no equity. The reason the decision was to take no equity was that in the world of venture capital, sometimes you make poor investment decisions and you get no money back. Sometimes you make really good investment decisions, and you get five times your money back or ten times your money back. But you almost never get one time your money back.

> I knew enough about the federal government to know that if you invested money and you got none of your money back, everybody would get angry. But it also turns out that if you invest money and you get five times your money back, everybody gets angry too, because then you’re competing with the private sector. There’s no way that when you’re doing innovation like this you could expect that you were going to get one times your money back. That’s just silly. It was better to take no equity at all.

This is from the oral histories,
https://historycollection.jsc.nasa.gov/JSCHistoryPortal/hist...

So NASA gives them access to technological expertise + historical engineering data + designs + prior NASA IP, gives them cash for development, takes no equity, let's SpaceX retain IP, and provides a guaranteed market.

SpaceX is doing incredible work and they're bringing these technologies to the market. They're making the sexy iPhone from the unsexy fundamental science done by NASA for them, and this development is being mostly funded by the tax payer, with nominal (up to 30% to 50%) private contribution.

I would hold them up as a model for how to blend the best elements of public works & private enterprise, and a model on how to do public-private partnerships.