Laws (in the US anyway) are "ambiguous" because they can't be changed very often, so implementing regulations are left to the executive branch, and the judicial branch can edit either one however they feel like anyway and aren't programmers.
Yeah I think the slight nuance that some people miss is that many of the regulations in place are interpretations and implementations of more ambiguous laws.
And they are updated quite frequently and implemented quite programmatically!
But the laws also remain ambiguous because the world is an ambiguous place with a lot of edge and corner cases with unforeseen knock on effects.