Why did British rule of India become unpopular in the 20th century?

as the world started to learn about the crime commited by the british in india.