One of the standard ways to criticize government is to point out the unintended consequences of laws or regulations. Freakonomics has a good piece here. Alex Tabarrok at Marginal Revolution has commentary here .The commenters have gone to town.
However, the same truth applies for all human actions, including those by corporate bodies. I think the law is a subset of the generalization: "people aren't as smart as they think they are".