Unfortunately the government can't magically create resources. The only thing the government can do is reallocate funds from one area to another which is inefficient. The most efficient form of allocating resources is the market, not central planning.
When the market allocates resources there is a much greater chance of the resources being put to good use because they are seeking to generate a profit. In order to generate a profit people must not only want something, but find the price reasonable.
When the government allocates funds it takes money away from entrepreneurs. More often than not what the government invests in would not be bought by citizens for how much resources they actually put into it. This is completely inefficient, as we are putting in let's say 100,000$ to get something that is worth 10,000$ to the people using it. If this were a business, they would be operating at a huge loss and go out of business. But since it is the government they don't go out of business and continue to misallocate resources.
In the off chance that the government uses these resources efficiently, it is certainly not because of any magical "gift" the government has. In this case, the same exact thing could have been accomplished by entrepreneurs. In fact, entrepreneurs are incentivized to seek out these opportunities because there is profit involved.
The only investments we need the "gift" of government to pursue are those that we get less value out of than we put into. It's hard to argue that these are good investments.