From your link:
"However, despite the public opposition of Pakistani officials, multiple former Prime Ministers gave covert permission to the United States to carry out these attacks."
Makes sense, they were in the tribal areas where I assume the government was losing control of their monsters.
I’m scratching my head on this because Pakistan was and is still a US ally, but I guess you mean the Bin Laden operation?