I was going to make a joke about how it was really because they were hiding Nazi gold but…
Although these bombings were attributed to error, some historians have suspected that the Allies wanted to send a warning to Switzerland for having collaborated with Germany.
Several Swiss cities were bombed during World War II because they were mistaken for Germany. https://en.wikipedia.org/wiki/Aerial_incidents_in_Switzerland_in_World_War_II?wprov=sfti1#Bombing_incidents
I was going to make a joke about how it was really because they were hiding Nazi gold but…
The German city of Constanze would deliberately leave all their lights on at night so that allied pilots would think they were part of Switzerland
This actually worked pretty well