Yes, very large government subsidies created the current market situation in Germany. But, note that "very large" is only relative to typical subsidies of wind and solar in other countries. Also, all electricity markets in developed countries are pretty much completely regulated and the economics of electricity are determined much more by a combination of regulation and indirect subsidies than they are by anything remotely resembling a simple definition of market forces.
In the United States, for example, we have an extremely complicated mixture of local and state-level economic, infrastructure, and supply regulations, environmental regulations that are mostly federal (though also state), zoning, eminent domain, and other kinds of permitting. Then, alongside all those, we have massive subsidies of electricity distribution infrastructure, extraction of coal and oil, transportation, and "homeland security." Finally, we also have relatively small subsidies for wind and solar.
Germany made a policy decision some years ago that public subsidies of renewables would create large positive social externalities. So, yes, the money goes around in a circle, but -- to over-simplify -- in theory creates more money (technology development, improved resistance to economic shocks, jobs, public health) and better outcomes of various other kinds (public health, reduction of climate change risks of various kinds, reduction of risk from nuclear plants, perceived electoral advantages by the political parties in power) as it goes around.