The instrument cluster has got a liquid in it to stop needle vibration etc. If the dash clocks are removed (which it sounds like they may have been at some point) and not kept upright the fluid can leak out causing the gauge to throw a wobbly.
Sounds to me like this could have happened. I always thought the mileage was stored in the ecu and not the clocks itself, I could be wrong though...