Both top-loading and front-loading washing machines can develop smells when water, soap scum, and other laundry products build up inside the drum and components of the washer for a long time. This creates an ideal environment for mildew and bacteria to thrive. Read our detailed guide on the proper way to clean your washing machine .