There are a few sibling comments explain this by saying that, since the law is divine, so are the loopholes. That doesn't tell the whole story.
A big chunk of judaism has always centered about cultural preservation. In a way, the careful crafting of ridiculous loopholes is a stronger indicator about caring that the law exists --ie, presereving the culture-- than blindly following it. And so it's allowed and celebrated.
("What happens when a culture that is built on the notion of being an opressed people finds itself in a position of dominance" is an interesting question and left as an exercise to the reader.)