The people of Pakistan are hugely skeptical and wary of this 'alliance' and have long felt they have been used, there is deep resentment, so it's not even slightly surprising they are looking to align themselves with those whose reputation is less sullied (in their view) than the US's.