Fungus lives in damp environments so that the filaments can absorb nutrients that are dissolved in water such as sugars and amino acids and then they release enzymes and toxins from that process that go on to degrade more complex nutrients for them to absorb.