The Muslims tried to purify the Islamic practice of the Hindu rituals which had accrued over the years.
Over the years Hindu rituals made their way into Islamic practice and the Muslims tried to cleanse this.