Private foundations can pay for some of it - a lot of the green revolution was funded by the Rockefeller Foundation - but they don't have the resources of the federal government, and you're relying on the whim of a single family or individual.
Government-funded basic research has worked out really well for the US.