A Question About Telecom Wiretapping Immunity

If they weren’t doing anything illegal than why do they need immunity?