You can single out California, but I assure you there are asinine laws on the books in most states.

What it takes to become a “successful” politician is typically not what it takes to define good policy.

Democracy rewards mass appeal, and that in turn encourages demagoguery and gives a platform for stupidity. It's been an unavoidable problem with the system since Athens.