Musty odor is caused by bacteria growing in moisture. It can be prevented by drying fabric in industrial dryers above 70°C until 100% fully dry before folding, and regularly cleaning the washer drum.