The problem with many (perhaps most) laws is that the people who write them cannot think through all the consequences of their law/regulation. As a result, the world is awash with examples where a law had exactly the opposite result of what was intended. A great example of this is the Superfund law. It made all parties to a polluted site individually responsible for 100% of the cleanup, even if they were actually only the cause of a trivial amount of the pollution. This made each Superfund case essentially a death sentence to all companies involved, and so the strategy has been to stonewall each case as much as possible. This has led to a lot of Superfund sites remaining polluted, which was precisely the opposite of what the original intent was.
Another example is how towns sometimes mandate that businesses have a box containing a key to their building. The fire department has a master key that opens all the boxes, and they can use the key in the box to get into the business to put the fire out. No need to break down the door, just unlock it. Simple, right?
Well, not so fast. It seems that all these boxes have the same master key (world-wide, not just in the town) and it's possible to 3D print this key if you have one of the boxes. Like, if the company sells you one.
Don't try this at home, kids.