I own an empty residential lot in San Jose (south bay instead of east bay). The county of Santa Clara requires that all land always be mowed and never have grass taller than 6 inches. Their excuse is fire danger. Even if the grass is green. Even if it is the rainy season and the grass will grow back in a week. Even in a residential area.
I would like to use an electric string trimmer, but the city won't let me get electricity service without a building permit. Building permits cost 10% of construction costs, so realistically $100k. I hear other local governments in the bay area are even worse.
The lot is big enough that it would cost me around $1000 for enough batteries to mow the entire lot. I can do it with less than $1 worth of gas with my $400 4-stroke gas string trimmer. On top of that, lithium batteries only last a couple of years before they need to be replaced.
A policy like this would increase the cost of staying in compliance with the other rules by an order of magnitude.
That said, I hate gas law equipment as much as the next person. Ideally I would like to see all laws and codes requiring the use of lawn equipment dropped along with a ban as implemented in Oakland. I just know from experience that local governments aren't capable of considering the interactions between their various laws and codes.