Easy answer may be is that the US has to coordinate with the locals and so I bet intel somehow “leaks” out.
I think you’re right and that there’s a leak, because all of our attempts to free ISIS-held hostages have failed.
Of course, in this case the leak may come from the White House...or if not, at least from some source in the US and not from locals. I think our State Dept. and probably our military are infested with Muslim radicals or their sympathizers.
I think most of these failed rescue attempts have been more failures of intelligence than poor execution. Sound intelligence is always the most deadly resource on the battlefield.