As a living organism, mold needs a way to reproduce. That is where spores some in.
Spores are the reproduction method for fungus and algae. Since mold is a fungus, its means of reproduction is through spores, which are asexual, and don’t need to combine with anything in order to reproduce. Spores are much like seeds, but are much quicker and have a higher reproduction rate.