NASA funding far exceeds SpaceX’s and always has. It shouldn’t take 4% of the US federal budget (NASA funding during Apollo) to run a hardware-rich design process!
So, while in theory it may have had the money, in practice it did not.
It's not entirely bad though, I'm sure lots of those folks are doing good and important stuff. But I don't think the balance between employment and building things is quite right. At least to my tastes.