A country with a much bigger hostile neighbour, weak economy and no base for military technology cannot afford to remain isolated. Being in one camp doesn't imply that we have to blindly follow the camp leader, we did establish friendly relations with China despite being in "US camp".
India though officially non-aligned, was in reality, a part of an undeclared anti-Chinese alliance. And received military and economic aid from Britain and the United States for being a part of such an alliance. That aid helped her immensely in the wars of 65 and 71. Owing to the conflict with China, it was in the good books of both the US and USSR at the same time, a luxury we couldn't afford. Being a part of an un declared anti-China alliance with the United States and Britain is not exactly the same as remaining "neutral".
Nehru, who had shunned military assistance as signifying 'practically becoming aligned to that country' was prepared to accept it after 1962 conflict. He admitted that his policy of non-alignment was impractical. In his words
"We were getting out of touch with the reality of the modern word and we were living in an atmosphere of our own creation".[That was the champion of non-alignment having a rude awakening]...
He was even prepared to talk for a tacit air defence pact with the United States in case Chinese resumed offensive. In return, he only had to "talk to Pakistan" for the resolution of Kashmir dispute. Which he did by asking us to make the CFL international boundary.
In November 1962, Britain and United States sent missions to Dehli inorder to determine what military assistance India might need. Pakistan obviously was angered that a non-aligned country was getting military assistance. The economic and military aid coming from the West as a part of anti-China alliance helped India raise additional mountain divisions which she readily used against Pakistan in both 65 and 71 wars aside from strengthening and expanding her overall military capability. Economic aid meant that India could now divert funds meant for development towards defence.
Ayub, who was thought to be firmly in the US camp, forged a strong relationship with China during 64-65. He also visited Soviet Union and signed a trade treaty and credit agreement on oil prospecting.
What India's non-alignment was and how deep in the US camp Pakistan was---was not as simple and straight forward as you guys make it sound. Geography and localized conflicts like the 62 war influenced the policies. We who were thought to be "US stooges" had established long lasting relations with China during that time so much so that they delivered 60 F-6 aircraft free of cost before 71 war. Any country can join any camp to reap economic and military benefits, and for those reasons, Pakistan has been firmly in Chinese camp for a long time.
@Desert Fox @Taimur Khurram @Pan-Islamic-Pakistan @Hakikat ve Hikmet @MUSTAKSHAF