Our foreign policy/state department is led by the peanut gallery. India has far more in common with us and we have many common interests with them over the religious limb cutting zealots of Pakistan.
The Pakistan alliance US-Anglo is a holdover of the Cold War and Britain looking to sabotage India’s independence.
After gaining independence in 1947 India didn’t want to have close relations with the Brits and by extention the US. Pakistan was what was left to ally in the region.