Note that US GDP is also significantly higher.
Also, healthcare costs are affected by things that healthcare can't actually affect. Consider obesity.
Also, the existence of working govt programs in other countries does not imply that the US govt could do as well with comparable programs. For example, the US govt spends about as much per person as France does. Since the US govt services appear to be significantly worse ....
No, military spending doesn't account for the difference.