You have to look at the population split between urban/rural. In China it is 67/33 and India it is completely reversed at 30/70. And agri continues to be the number one occupation.
Additionally, lack of opportunities is also a problem. India has been focused on services and trailed behind on industrialisation. The current government has been pushing for more industrialisation but they are behind in the curve.