You need to have Rider's Gloves or Boots of Swiftness. Manipulating them during dismounting/mounting gives you a few extra movement points. Repeating this multiple times increases the number of moves, potentially to infinity!
I didn't know about this bug, and it definitely seems like a bug.
