IDK, it seems reasonable that railway companies, some which had significant wealth and influence, used the decline of superstition as a superficial reason to get rid of laws that were inconvenient to them.
From the comment they replied to. You should question this one level higher