The dishwasher is almost always moist due to the function it performs. This makes it a suitable place for mold to develop. Leaving your dishes in there for a long time is one of the things that makes them moldy.