They didn't. Before WW1, there was something called the Scramble for Africa, which meant that European countries raced to claim countries for their empires. This also led to conflict. England and Germany were the main countries involved. This was unfair for Africans as they didn't own their own land anymore/