Given this paragraph about Mahatma Gandhi, can you tell me why did he go to London?

Gandhi travelled to London in the late 1880s to study law. He first took English literature classes and then enrolled in Inner Temple with the intention to become a barrister.