That's because they were preparing for the biggest war in human history. This was the policy of militarism where building up a military was necessary to ensure that the people could fight against others. The number of soldiers in European armies increased twice in size in only 20 years between the 1890s and 1910s.