The United States and NSA has Israel do a lot of its spying. A lot of what the US government is doing is illegal so they're offshoring it to Israel. The Israeli government is spying on every US man, woman, and child supported by the US government. The USA also allows Israel to operate espionage cells in the USA and keep their spies immune from prosecution. Even when arrested for something extremely heinous like with the Dancing Israelis on 9/11, they're just sent back to Israel and not prosecuted.