I always heard it was to commemorate the dressing up of Morechai in king Ahasuerus's royal garments as told in the story of Purim.