So stealing same thing today could be felony, but would have only been a misdemeanor when the law was written. So re-basing also helps ensures certain statues and laws remain just. You could argue that law makers should go through old laws or account for inflation to start with, but sadly that is not the reality. Tons of laws get written with fixed monetary units.
https://www.littler.com/publication-press/publication/mexico...
Now we still have here and there monetary values given in francs (next to euros). I guess this must be a legal thing but come on, it is time to really move ahead and not keep backward compatibility forever here as well.
An interesting denomination was in Poland where the money was denominated by 1:10000
After long enough the old stuff is pretty much out of general circulation, but banks could still exchange for instance to the newer currency.