Every leader must praise the foreign leader when they come to visit. Ego massaging is helpful to keep relations happy with every country. Our leaders do the same with every single country. What he said and what we do are two different things. India is irrelevant in geopolitics. No one even cares about Indian opinion because you don't have economic power, military power, political influence, veto power at UNSC, etc.
India IS a pretty insignificant country in geopolitics. Whenever there is a major global crisis, it's always US, China, Russia, UK, France that deal with it. India is irrelevant because India don't have an independent foreign policy. Your foreign policy is to side with your master America. No one respects neutral countries like India.