The US needs access to Indian bases much more than India needs access to US bases.
India isn't going to invade Mexico, but US has operations in South East Asia, which may contain PRC.
On the other hand, the US has the habit of ditching its partners after its use is diminished.