Laws are imo somewhere between code and natural language, and imo closer to the code end of the spectrum.
If you go full “natural language” approach that’s open to whatever interpretation, that’s how you get kingdoms and dictatorships. Everything seems cool and all with the “natural language” approach to a legal system, up until the point the person in power decides to arbitrarily use it against the interests of the people they are governing.
This is pretty much why laws in countries with at least somewhat functional legal systems tend to be treated more like pieces of code rather than whatever someone thinks things should vaguely and generally.
The culture of “rules lawyering” is imo the best we can do if we want the legal system to treat everyone equally and impartially. Do you think that all the people involved in legal systems over thousands of years were just not enlightened enough to ever consider “why do we have all those ultra specific and codified laws, let’s just issue a list of general things like ‘don’t harm other people’ and ‘respect property of other people’ that would cover pretty much any undesirable behavior, and then call it a day?”.
If anything, legal systems became more “rules lawyered” and more similar to code over time, precisely because the world has been moving in the direction of more fairness and equality. I mean, not that long ago at all, we had some of the most advanced nation-states being ruled by a single king/queen/emperor/etc. And their word was not only a de-facto “absolute definition of the law”, but also de-jure (as opposed to some contemporary modern nation-states, like DRPK or Russia, that where laws technically exist on paper, but de-facto their codified definition doesn’t matter much at all,).