Laws are a set of rules. Algorithms are a set of rules. They ought to work the same? If laws can run the world, then so can algorithms.
Yeah, not so much.
Here’s how law actually works.
First, the legislature makes a new law. Theoretically, laws should be designed to be objective, in the public good, and as clear as possible about what is covered and how the law works.