M means milli in Latin, as in thousand (kilo comes from Greek). Millennium, millipede (thousand legs), and so on. Million just means a thousand thousands. That is why in most financial institutions, M means thousand, and MM means millions, literally thousand thousands.