The washing machine is dirty.
In order to prevent germs and unpleasant odours building up in the washing machine, run the Maintenance wash or Cottons programmes at maximum temperature.
Make sure that you wash at a temperature of at least 60 °C at least once a month.