We should not laugh at the person who becoming caught up in his prayer bends his body or moves about in strange ways. Perhaps he moves in this manner to wave off unwelcome thoughts that would interrupt the prayer. Would we find it funny if we saw a person drowning going through strange motions doing whatever was necessary to save his life?
Baal Shem Tov