Ancient cultures around the world knew the power and transmutational ability of using the movement of a human form attuned to higher levels of consciousness to shift, lift and potentially release stagnant or negative energy from others. People came to the temple specifically to receive this kind of treatment.
Using spiralic movement and ancient mudras, the conduit (dancer) was able to move the blocked energy of the supplicant by feeling/listening to the energy field of this person or persons and moving energy accordingly.
The temple dance is also used to unify energy fields. In today's world that might mean opening a seminar or group event or gathering. It lifts people out the 3D world into higher realms of awareness where labels and prejudice and other dividers make us forget our common origins.