Depending if you made your own soil or bought from store they could be naturally occurring spores. If you bring them outdoors spores can occur. Solution free way is let the first inch of your soil to become dry before watering again. Lack of moisture will inhibit mushroom growth. Mycorrhizal fungus can also help control harmful and pesky fungus in the soil as well as boosting root system growth and health. Happy growing.