Mushrooms serve as natural foliage for the underground environment of the Myr cities. Those particular mushrooms are part of a school garden, most likely used for teaching students about life cycles and how to grow things. I don't think it serves any mechanical purpose other than being purely dynamic environmental fluff text--and it's just amusing seeing the garden as a gauge for how much sex your character can have with Yarasta.