Perhaps a bit ironically, Switzerland's neutrality was formally cemented per Russia's will at the Congress of Vienna, following the whole Revolutionary and Napoleonic Era.
Given our currently "passive" neighbors last two centuries of history, and how some European countries collapsed into brutal civil wars and humanitarian bombings less than 1000km away from us within my lifetime, we usually try to maintain friendly relations with everybody while being armed to the teeth and having universal nuclear shelter coverage.
The last two points got renewed interest lately as expected...
But on not allowing Swiss weapons to be exported to Conflict Zones, it is nothing new, the last controversy we had was about some Pilatus PC-12 sold as civilian planes to the US (it is a turboprop passenger plane), after it was discovered they had been converted to military use, gifted to Afghanistan and used in bombardment operations.