Why is there a law that requires adding iodine to the salt?

Explain the problem and why is there a Brazilian law that requires adding iodine to cooking salt?
Expert answer:

To prevent the lack of iodine in food that leads to a disease called goiter, this disease was very common before this mandatory.