Mushrooms occur naturally and cannot be prevented. In fact, during periods of excessive rain mushrooms often pop up in areas due to encouraged microbial activity and moisture in the soil where there is decaying wood or root systems from former trees. They do not pose a problem to the lawn. In fact, they can be an indicator that the soil in your lawn is healthy and rich in nutrient. Once the area dries out most often the mushrooms will disappear.