Here's how it works at one company I looked into in MN. May vary elsewhere but should be similar. Might be upfront costs elsewhere with cheaper rates, etc.
First, the utilities are required by law to buy power from small producers, like individual houses with solar panels or the community solar gardens in the topic. So these community solar companies put up a number of panels somewhere flat and sunny. They then sell you power at the price it takes them to finance the install, maintain the site, and make some small profit. In cases of modern solar, this is probably 1-2 cents cheaper per kWh than the power company charges. The utilities are generally in the loop, so they still bill you but they show a credit at their rates based on what your portion of the community solar produced, the bill to the community solar for your usage, and charge you what is owed.
A simple example to drive it home:
You subscribe to a solar garden at 1000 kWh per month for 10 cents per kWh. Your utility charges 11 cents per kWh. You actually use 1100 kWh. Your utility bills you for 1100 kWh at 11 cents, or $121 for the power. You get a credit from producing 1000 kWh from the garden at the utility rate or 11 cents, giving you a credit of $110. You have to pay your subscription cost of 1000 kWh at 10 cents, or $100. So the final bill is $121 + $100 - $110 = $111, which is $10 cheaper.
Now, there are potential downsides. The company I looked at had a 25 year subscription with fees to leave even if you moved and transferred the subscription to the new home owner. They increase their rates on a yearly schedule and if the utility increases don't match or exceed the rate increase the deal gets worse or possibly more expensive than buying from the utility. It also seems that if the whole solar array produces less than expected, you might not get the full output you were expecting, but that just reduces the benefit proportionally.
Finally, cost of solar output has been dropping for a while, waiting another 5 years might or might not provide larger benefits. Hard to say.