Many of the cats roaming neighborhoods are feral cats, no different than the raccoons, possums, turkeys, and other animals that can mess up your garden. You can't really legislate their activities.

Even when laws are written, they're not enforced, and as a result dogs remain a far greater problem than cats.