They don't. What do you think subsidies are for. My town in Northern CT has installed solar on the roofs of several municipal buildings, "at no cost to the Town taxpayer."
The largest one, has generated a whopping 6kW this week. That particular installation has approx. 2,500 panels and cost almost 600K.