It's about priorities. Swiss defense spending as a percentage of GDP is 0.675%. US defense spending as a percentage of GDP is 3.2%. I just picked a simple example, but you will find similar disparities across the board.
But more importantly, Switzerland isn't a NATO member.
(..and yes, only men are conscripted. Switzerland is a great country, but there continue to be problems with sexism, even today)
https://en.wikipedia.org/wiki/Military_budget_of_the_United_...