Right, but that work is "owned" by the American taxpayer already. Why shouldn't SpaceX have access to it?
What Space X is a good example of is the very effective model we have here in the US of doing innovation. Government funds fundamental R&D, then private industry commercializes it. It's a healthy synergy that you see throughout the sector.