Answer:
Most mushrooms are considered saprophytes — they get their nutrition from metabolizing non living organic matter. Nutrients and other essential compounds are stored in their bodies, and when there is enough material stored and the conditions are right they start to fruit or produce mushrooms.