In the US, it's standard to do ten miles an hour over the speed limit past a cop, and there's probably 20 Federally illegal marijuana dispensaries within a few miles of me. Our current President got convicted of 34 felonies, but any possible consequences were automatically voided when he got elected again.
So just because something is illegal for the government TODAY, doesn't mean it will stay like that for the next 500 years.
Laws aren't real, they're just made up constructs on worthless pieces of paper, but the only thing that is always consistently real is the enforcement of the will of state through means of violence and they'll put that in writing to give it legitimacy but ultimately the people in charge of the guns can make whatever they want legal or illegal.
The world changes. Maybe in 50 years child pornography will be legal, who knows? It doesn't change based on what those rulers want, because in a true Democratic country, the people rule.
Most countries (including the US, obviously) follow their laws. Can you please give an example for a first world country that *consistently* ignores it's own laws?
History repeats itself because people ignore history, not because people ignore the law.