In Switzerland, the individual municipalities and cantons are very free. Usually, there is a Swiss law (at the level of the whole confederation). Very often this states general things and says that the cantons must follow this rule. The cantons then make detailed rules, each in the way it sees fit. Sometimes this leads to strange situations. There are 26 different schooling systems.