Legend states that Bhima had a battle with rakshasa Bakasura and killed him. After the fight Bhim was thirsty, so he slammed his feet on the ground to form a small pond. The pond, called Bhimkund, and is near the temple. Per Mahabharata, Pandavas used to bath in Bhimkund during their exile.
