Goddess Parvati was sending her slave to enemy territory and she did not want him to be compromised. So she devised a way to make him loyal and it involved torturing and degrading him. She did this by making him eat her shit and drink her pee, something she had never made him do before. He was so scared but it worked as he was not compromised when she sent him on the mission.