There are some key differences in your examples. GPS is peak government. Launch it and let anyone who wants to develop a use do so. But creating subsidies that heavily favor an existing company is easy to do and unfair. If the govt wanted to adopt a EV charging standard and install a network of charging stations across the country for any and all EVs to use, great. But increasingly the government is handing wads of cash to private companies while allowing them to continue the trend of making everything proprietary.
Lets look at State and local governments that offer massive tax breaks to Amazon to open a new warehouse or data center. Sure... they might argue that anyone opening a 100,000 sq/ft+ data center could get the break, but when only one or two companies exist at the time of the tax break that can use it, that's targeted. It's also bullshit. Take a step back and think of the lunacy of providing tax breaks of any kind to a company as wildly successful as Amazon.
It should be illegal for the government at any level to offer tax breaks to specific companies or industries. If you want to incentivize companies to show up, lower taxes for all business. It is absolute insanity that Amazon, one of the biggest corporations in the history of Earth, ran a beauty pageant where every major city in America handed over infrastructure and development plans while bidding for who could offer Bezos the lowest tax burden to open a new HQ. And after literally dozens of local governments prostrated themselves at the altar of Amazon for a chance to enhance their tech presence... who did Amazon pick? New York and DC. Fucking really? If you think it's just a coincidence that Amazon picked the business and government hubs as their surprise split decision, then I have a bridge to sell you. They knew from day one where they were going to build, but the data-driven company that's building a global distribution network got every city to give them their infrastructure roadmaps in the process.
I'm a big free market advocate, but the theoretical perfect free market does not account for government. So we have to make changes that aren't purely free market. The modern capitalists, largely in tech but not exclusively, have mastered the art of using government to entrench their positions. Remember when Amazon suddenly supported collecting sales tax on all internet purchases because they could offer their payment services to small businesses that couldn't account for hundreds of different tax rates? Apple is pushing hard on right-to-repair laws. This is the modern version of telcoms making monopolistic agreements with city governments to lease telephone poles and prevent any other companies from competing. One electric provider, one gas, one phone, one internet and cable.
Progressives (establishment, not voters) have always despised meritocracy, so their disregard for the miracles provided by the free market is no shock. But conservatives (establishment, not voters) have been blinded by the incredible wealth the new robber-barons have brought to their investment portfolios, and forgot that the free market can only function if it is perceived to be fair by the participants (voters, workers). Globalization brought us cheap clothes and TVs, but 30 years in and the cost turned out to be jobs and upward mobility for a huge swath of the country. The "democratic socialists" on the left were the first to lose faith, but they are few. Now the populists on the right, both of the Trump type, and the Tucker Carlson type are starting to lose faith too. It should scare you, because your kids, and certainly your grandkids will face a very different reality if the disenfranchisement continues to spread.