Why was Militarism a reason the first world war started?

Increased military and naval rivalry led not only to the belief that war was coming German ruling group felt that only through a war could Germany become a world power and increase in military control of the civilian government also increased cooperation among the military staff of the countries of the same camp.