It is undeniably government funded, backed, and run research that has fostered the technological "magic" we see today. I wrote "undeniable" because it is a fact--not a conjecture, opinion, or item subject to debate. Government funded and government run research programs created our space-age technology (literally) and the internet, and fueled a great percentage of the other developments that have advanced our technology so rapidly in the last several decades.
Private companies (whether held privately or publicly traded) are mainly creatures of fear and risk aversion--even the ones that are relatively less so than others. There's nothing especially "bleeding edge" about SpaceX or Tesla, or just about anything else Musk has been involved with. Historically, it has usually taken a great thrust by the government to make big advances, whether through subsidies (i.e. corporate welfare) or direct involvement (NASA/DARPA).