Some state lawmaker who doesn't think out the consequences of a bill or gets caught in one of those "think of the children" moments writes up a crappy law.
I do believe in the 90's some extremely green (in many ways) congress-critter wrote a law that would basically make farming illegal in the USA and require quite a lot of buildings to be torn down (like the whole states of SD,ND, and WY). Bill did get some co-sponsors (tells you a little about the world there). One house rep pointed out due to the wording that all building within a mile of Central Park would have to be torn down. So ended the bill.