Goddess Parvathy stayed here as KALI and When a devotee asked a wish to her, she ordered him to provide a horse-shaped shadow for her standing posture.
There is another ancient history for this temple.