I always attributed this to the fact that anyone who has ever tried to tell a computer what to do has a different kind of understanding of how hard it is to precisely define intentions, even when the compiler doesn't have a personal financial or other incentive to deliberately misconstrue your code so as to create a bug.
It doesn't matter how beneficial is the intention of your law, it'll really only work if it's generally aligned with the local cultural values -- in which case people will Do What You Mean.
Politicians either don't understand this, or pretend not to; you regularly see them passing laws to outlaw things that are already illegal.