Mustn't is used to express a prohibition or obligation not to do something, such as when a doctor tells a patient they mustn't go to school because they are ill. Don't have to expresses something is not necessary or required, like how students don't have to go to school on holidays since it isn't required. The key difference is mustn't conveys an obligation not to do something, while don't have to means something is unneeded or optional.