Damp and warm conditons, such as what are normally found in washing machines are perfect breeding ground for germs.
Laundry, by it's nature is contaminated with all manner and sorts of "germs". If proper laundry technique is not carried out, much of these germs not only will remain on textiles, but will coat the insides of the washing machine surfaces as well, (biofilm). Once this happens, it rather like having a sick person spreading about his germs. Everything that goes into that washing machine will become contaminated with whatever is growing inside the machine.
Remember also, washing machines, like dishwashers hold a small amount of water in their pumps after each cycle is complete. If that water has an active enough colony of germs, they will grow and breed, again to be spread the next time the machine is used.
Slime,mould, gunk, germs and all the rest one sees growing inside the washer, around the boot, between the tubs an so froth are what one is washing one's laundry in!
Because of the movement towards lower temperature washes, and or wearing of colours which cannot tolerate any bleaching, including oxygen bleach, we are seeing more and more "sick washing machines" out there. Hence these new products like "Affresh" (which is mainly oxygen bleach),to "clean" the insides of one's washing machine when it goes whiffy. Well if one has chronic bad breath, that usually means something is rotting in one's mouth or down the pipes, and just brushing one's teeth is not going to cure the disease. One has to get at the root cause.