Why did the British Empire Rule India?

The British Empire ruled India so they can take over India and steal all their good such as herbs, spices, rice, tea ect as India was a very weak and poor country at that time.