Maybe the US should also think about all the money, military aid, and military training - ironically, most of it courtesy of the CIA - it provided to OBL and the groups that eventually coalesced into the Taliban when they were "freedom fighters" and "rebels" fighting against the Russians in Afghanistan. No one is going to shed a tear at OBL's demise or (hopefully) the eventual disintegration of the Taliban, but we shouldn't forget either that OBL and the Taliban are (or were, in the case of OBL) monsters at least in part of our own making, and that ****stan has, in many ways, paid a dearer price for that than we have.
I don't have much sympathy for the ****stani's if, in fact, they were actively protecting OBL, but let's look at it from their perspective too - they have to live with the Taliban. We don't. It would be my guess that they probably knew OBL was there but were just hoping that no one else would ever find out - partially because it would be politically embarrassing internationally, but mostly for internal security reasons - and were willing to tolerate his presence so long as he was contained.
Or, if one wants to go full conspiracy theory, maybe ****stan made a deal with the devil - we'll leave you alone if you just stay put and live a quiet life and don't stir up any more trouble for us.