Um you mean like Tata and Reliance?
It turns out that India is better at creating outsourcing enterprise IT companies than China is.
There are things that India is better at, and stuff that China is better at. China turns out to have gotten into hardware because of Indian laws on manufacturing that killed the industry there. As far as “pure software” I’d say that India is better than China, but the Chinese companies exist to fill a niche. In the case of Tencent and Baidu, it was because Chinese internet laws meant that Western companies couldn’t enter. Ant Financial was because you had a pre-existing P2P loan system that went onto the internet,
If you ask why did X happen, you’ll find lots of random events that happen to just put something in place X.
Also just like people have crazy and outdated ideas about China. People have crazy and outdated ideas about India.