It was the practice of the Prophet (peace and blessings be upon him):
"He (peace and blessings be upon him) disliked that anyone should tread on his heels; rather, they should walk to the right or the left."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 5009