What’s at issue here is an aggressive application of prosecutorial discretion. It’s well-established the the cops and district attorneys have a wide discretion about which cases they investigate, charge people with, and proceed to trial. In these cases, the cities or counties are simply stating, “That law is our lowest priority, but you’re free to waste your own resources on it!”