Paki intelligence serves many masters
But apparently not the Pakistani population. PAK is using terrorist groups as part of their strategy against India. A good introduction is this Wikipedia page https://en.wikipedia.org/wiki/Pakistan_and_state-sponsored_terrorism