Pakistan was always a US ally and India was in the Soviet camp. We got money from Soviets and Indira Gandhi was too smart ... she also got money from USA and USA forgave those loans too.
It all depends upon who your allies are and besides, Pakistan is america's b1tch on its war on terror.