The thing is that Switzerland has a very unique architecture and minarets really stand out.
They didn’t forbid building Mosques, just minarets.
It is the same for example in Paris where American Restaurants were told to take down their flashy signs because it was against the architecture of Paris.
So lets be clear. Europe has different rules as Muslims living there they have to conform to those rules.