Have to and must can be used to talk about obligation/necessity.
The negative don't have to means it's not necessary. The negative mustn't means it's prohibited.