The story
By analogy with the similar Roman mile and English mile, although the li was somewhat shorter.
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: A li, a traditional Chinese unit of distance equal to 1500 Chinese feet or 150 zhangs, now standardized as a half-kilometer (500 meters). Full definition →
By analogy with the similar Roman mile and English mile, although the li was somewhat shorter.
Etymology from Wiktionary, CC BY-SA 4.0.