NASA provided the money and then for the most part got out of the way.
We've seen how slowly NASA has progressed on developing their our manned launched systems and all the red tape it takes. SpaceX likely is delivering a superior product, at a lower cost, and much faster.