Mushrooms growing in the potting soil of houseplants are usually there because the potting soil is decomposing. It's a natural thing; you can pull the mushrooms out and try to make sure the potting soil isn't too moist all the time. Or, you can repot your plants with fresh potting soil.