Dhenupureeswarar got his name because he gave moksha to a cow (). Sage Kapila is said to have been reborn as a cow for his sin of having improperly worshiped a Shiva lingam using his left hand. The cow continued to worship Shiva by pouring milk on a Shiva lingam buried in the ground. The cowherd initially punished the cow for wasting the milk, but when the villagers unearthed the Shiva lingam, Shiva appeared and granted moksha (liberation) to Kapila and forgave the cowherd who had mistreated him. Legend has it that the king had a dream of this occurrence at this site and had the temple built to commemorate it.