Why did ancient Indians convert from Hinduism to Buddhism?

This happened because they saw that the practice of Sanatana Dharma had become corrupted; rituals and the use of statues for worship had become common some time before Buddhism came about.