They are intentional.
They aren’t loopholes. They are just laws.
Some people just call them loopholes because they dont like them.
There are quotes from at least Madison, Hamilton, and Jefferson that support the idea that this was intentional.
Law is basically a representation of societal judgement. While criminal law is intended to be clear enough to know when you've violated it, that is not the same as beimg logical or consistent. Civil law is even less logical and consistent. Formalizing it into logic generally does not make sense overall - it isn't really broken in most cases because it was never intended to be totally consistent. There are certainly areas that could use cleaner rewriting but courts are generally well equipped to figure out what it means. Congress and the states can always overturn interpretations of law, but the rate at which they rewrite laws because they thought courts interpreted it wrong is very, very low.