The wikipedia entry on kamasutra does say it is a hindu religious text, but as wikipedia cites two references both of which are not of indian origin, and then there is another reference which.
According to a study of erotic carvings in hindu temples erotic sculptures serve the visitors to refresh the spirits by releasing suppressed feelings about sex when observing the sculptures.