It was the practice of the Prophet (peace and blessings be upon him):
"When he (peace and blessings be upon him) went out on the day of Eid by one route, he would return by another."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4710
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[ت ك] عن أبي هريرة. الروض النضير ٣٣٥، المشكاة ١٤٤٧.