gov't-funded R&D is why we have nice things. everyone strategically forgets that silicon valley exists because of bottomless cold war spending, so silicon valley's obsession with the superiority of the private sector is ever ironic
The private sector is generally very, very heavy on short-termism. Even when companies do have internal long-term research initiatives, there is often a strong aversion to pursuing research that could cannibalize high-margin products.
Which private, for profit, company would spend five (5) billion dollars (unadjusted for inflation) to launch GPS satellites into space and then allow their unlimited use free of cost to anyone in the world who has a receiver? That cost doesn't even account for ongoing maintenance.
And there is nothing free about using those satellites. Tax payers pay for their launch and subsequent maintenance and running costs.
The military spends on R&D where it makes zero business sense for a for-profit company to spend. Private companies must be profitable.