Its not like Osama was strolling through the markets. He was hiding behind 18 walls.
Well, I reckon the building of a new, secretive 18’ wall compound next to lots of military installations would have drawn a little bit of attention. If Osama was even slightly afraid of the Pakistani military, he would never have situated his hideout at this location.
On the contrary, he seems to have regarded the Pakistani military as a protective presence. That tells us pretty much everything we need to know.