It was. And the face covering ban was spinned to be against the customs of a minority. It is still allowed indoors.
Every country has some clothing requirements. Some mandate headscarfs (for women only), some mandate the face remains visible. No laws were needed for this in Swiss because no people were covering up. But now this has changed, so laws come. I dont find any problem with it, and hope that the "custom" of genital mutilation done to children is next to be forbidden. You can still do it, at 18, but yr parents should not be able to decide for you. Not against jews/muslims, just in favor of childrens rights. Scandinavia is front running on this one.
Populist ideas, can easily thrive in a direct democracy.