Fungi feed off decaying organic material. Shouldn't damage the plant directly (mycorhizzha does damage roots, so there are exceptions). depending on the fertilizer you use, it might be leaching some off if it has ingredients that are decaying organic material.
Very likely came with the medium from the store and the context of potted soil is conducive to growth.
if it happens too often, try different store or soil.