Sauron enjoyed having Shelob living at the entrance of Mordor as she would often eat anyone who tried to sneak in. He would even send prisoners down to get eaten by her every once and a while as a treat. He also didn’t care if she ate a few orcs now and again as he had plenty to spare.