Switzerland's neutrality is a fact of geopolitics. The geography of Switzerland means a big part of the country is essentially a natural fortress with bunkers cut directly into the mountain and firing down. There is a reason the Nazis never invaded and that wasn't neutrality (neutrality didn't do Belgium any good in WW2). Unlike other countries, Switzerland can afford neutrality and it is ultimately the most profitable option.
These days, I don't think Switzerland really fears an invasion, but it's true that the financial incentives have taken over. At the level of the population, the neutrality culture runs deep, and as Switzerland is one of the richest countries in the world, there's really no reason for the average Swiss to be upset about it.
The Nazis had plans to invade -- Operation Tannenbaum -- it just wasn't a priority. You're fighting the Soviet Juggernaut in the East, and the British Commonwealth + the US in the West. Why piss away tons of troops to get a small mountain country with no strategic resources that's effectively bottled up?
But knock out the UK or the Soviets, lower the pressure, and there is little doubt the Nazis would have made a go of it eventually.
Neutrality though made it a good place for exchange and safe-keeping. e.g. https://en.wikipedia.org/wiki/Nazi_gold
These days, I don't think Switzerland really fears an invasion, but it's true that the financial incentives have taken over. At the level of the population, the neutrality culture runs deep, and as Switzerland is one of the richest countries in the world, there's really no reason for the average Swiss to be upset about it.