For Millenniums wars are covering our planet. Wars for power, wars for religion, wars for greed, wars for resources. A lot of countries are still involved in wars at home or abroad.
But also a lot of countries are not involved in any military dispute any more. Nevertheless they have military.