Many of the countries of Europe were empires with colonies scattered across the world.
So, when Europe went to war, it automatically meant that their colonies went to war, too.
This is what made it into the first World War. For example, the Germans (who owned part of East Africa) invaded British Uganda and the British moved from South Africa into German South West Africa (now Namibia).