When a person dances with his entire body, it is like shaking sand and dust from a garment: the dirt falls away and the garment becomes clean. So too, through dancing, a person's external, superficial layers fall away, and his soul becomes refined and elevated.
(Chovat HaTalmidim)