"mi" usually stands for miles. In mathematics it is more likely to stand for millions.
A letter in math can stand for any number
MI stands for Michigan or Mile.
Math is an abbreviation of mathematics: it is not an acronym. So the h does not stand for anything!
"Mi" probably stands for "miles," which are not metric units; if it were "m" it would stand for "meters," which are.