I suspect that one of the issues was that most/all food used to be sourced locally, especially eggs and milk, which are good sources of iodine, with seafood probably mostly absent from the Swiss diet.
Edit: apparently nowadays, and taking animal feed into account, Switzerland imports about 50% of its food.