Countries began to engage in militarism as a result of alliances between European countries against one another. They began to form military forces in their countries to strengthen and protect themselves.
Like charges repel each other; unlike charges attract. Thus, two negative charges repel one another, while a positive charge attracts a negative charge.