Why did british rule in India come to an end?

well there is a reason, but i dont actually know it, mwuhahaha:')