I’m not sure but mostlikey “ to be able to draw a red line from Cairo to Cape Town building a railway across the entire continent of Africa without leaving British territory. Or wanted a large empire to be controlled by local settlers and politicians rather than London.