(As long as some grid tie is required for occupancy permit, this doesn't really address the original comment's point about bona fide competition with the grid. But on the other hand I'd rather have a public utility than be in a victim market of a "private" underregulated monopoly. My connection fee is like $10/mo. Also they built out gigabit fiber, which just works and doesn't require the yearly threaten to cancel dance of Ma Coax.)
For example, I've heard of places where not being connected to the grid is illegal (revocation of your occupancy permit), with the local utility monopoly then demanding you sign their contract with onerous terms (effectively making those terms de facto private law). Someone could sum up that state of affairs as being "independent generation is prohibited", meanwhile the actual details give much more room for sidestepping.
A workaround is to go fully off grid. A larger workaround is to get a small electrical box hookup on your property for emergency power (thus paying the monthly connection fee), but your home can run off-grid. In the event of a situation where you need the grid power, you can run an extension cord and hopefully plug in the few items you require. For convenience, most people obviously don't go this route and instead abide by the terms of the power company.
This is not accurate. You cannot legally reside in a home here without a grid connection. It is a mandatory utility.