How did militarism help cause World War 1?

Militarism means that countries in Europe during this time period would puropsely grow their armies.

An example of this is that Russia had fought up a large stock of arms which had threatened its neighbours. Germany also increased there military which worried Britain and France who already had big militaries.