They have the advantage that the country is so small. Us Germans however have to deal with the fact that we have the 5th largest country of Europe of which a lot of is settled and has to be supported by the entire population.
And in any case, Swiss taxes aren't that much lower than Germany's either - average tax load in the country is ~29% [1], Germany is at 33.9% [2]. Switzerland's total load may be even higher because the German figure includes social security payments, Statista for Switzerland is only taxes.
[1] https://de.statista.com/statistik/daten/studie/1176146/umfra...
[2] https://www.bpb.de/kurz-knapp/zahlen-und-fakten/soziale-situ...