Regulations that make 100% sense the day they are enacted, often become less and less relevant over time, and after a few decades they've set in stone some ancient order that is bad for most everyone.
But usually it's very hard to change them, and so they pile up as so much Legacy Code.