CIA being incompetent in non-technological aspects of their work is hardly an unusual thing.
Pakistan always had its own games with Taliban and Islamists, all more or less related to their conflict with India and their own Pashtun borderlands. And they continue to have them after USA has left Afghanistan, because they still have unstable borderlands and they still don't like India.
And they are the property of China and the Saudis.
Hence the fact that bin Laden was hiding there, probably with the help of the ISI/Pakistan Army is quite suspicious.
Also, the Taliban were one of the primary proxies for Pakistan and the Saudis in that area, with most of them coming from Madrasas in Pakistan.
And after the US invasion IMHO holding on to bin Laden would have been very dangerous and I am pretty sure that the Taliban would have preferred to distance themselves from AQ and bin laden, so that points to him possibly being an agent of Pakistan or of somebody in SA with enough clout to push them to keep him safe.
Probably a dissident faction, the type his relatives might have been involved with.
As to the CIA, well, they can still organize messed up color revolutions and try and go after Trump, but little else.