https://www.firstpost.com/india/supreme-court-recognises-prostitution-as-profession-what-does-this-mean-for-sex-workers-10726011.html
"In India, their presence can be dated back to ancient times with scriptures mentioning the presence of three kinds of women — those who were chaste and devoted to a single man (even if the man had many wives). The second were women who kept away from men and lived as nuns. The third kind were women who had multiple lovers and were attached to no single man.
In later times, such women were considered the wives of a temple deity or a Devdasi, who saw their god in all their lovers. This last kind of women has often been described in modern literature as ancient sex workers or prostitutes or sacred concubines..."