Lool Naive question. Every country looks after their intetests first and foremosts, there are no friends, India is no exception. Only the naive/weak will think otherwise.
By your own logic , why did Russia and China vote/abstained from sanctions against Iran in UNSC in the past? lol Self interests, depending on what the U.S/West had to offer in exchange.
Big/mature powers dont care about anything else but their interests and will sometimes make deals/compromises between each other, while the small countries just wait for their fate.
So China , Russia and even India are no exceptions, they all are looking after their interests and they know the West/U.S still have the upper hand For now. So compromises are often needed when need be.