Honest people know it's because India, while a liberal democracy, was actually more socialist and centrally planned than China, up until the 90s when the first free market reforms were made. This is almost two decades after China opening up.
Honestly people on the internet have warped views of both India and China.
As for what India did... This is an ancient society which still has customs and such dating back God knows how long. It is not easy to change. Simply existing as an independent nation after almost 1000 years of foreign rule is an achievement.
I've not been to India in almost a decade now, but when we visited regularly growing up, the amount of progress every trip was astonishing. I don't see how anyone can deny that