Political economy

Why do states often provide or finance goods such as national defense rather than relying entirely on private markets?