The washing machine is dirty.
In order to prevent bacteria and unpleasant odors building up in the washing machine, run the Clean Machine or Normal programs at maximum temperature.
Make sure that you wash at a temperature of at least 140°F (60°C) at least once a month.