The legislature deals in broad hypothetical scenarios, for example perhaps "Putting anchovies on pizza shall be a crime punishable by death".
Courts must deal with an actuality with lots of specific facts that could not possibly have been anticipated by the legislature. For example are these particular fish anchovies? Was this item a pizza in the sense the legislature meant? Who exactly "put" the anchovies on the pizza if it happened automatically by action of a machine? The person who installed the machine? The person who loaded these specific anchovies into a hopper? Does it matter if that person knew the machine makes pizza?
It may also run into larger questions. Is the legislature really allowed to kill people for putting anchovies on their own pizza? If not, why not? Would it be allowed to fine them? All of this has the effect of "creating law" in order to dispense Justice, which is the whole reason we created courts.
Maybe the same applies in the US too.
I don’t quite understand your response.