Actually Gaza and the West Bank are handled by the "Shabak" agency which is the equivalent of the FBI while the "Mossad" agency is only for foreign operations and is equivalent to the CIA
And asking how did they miss something is like asking how come AWS has downtime. But I'm sure you could come to this conclusion on your own if you didn't really want the answer to be something else.