What does a Mushroom do?

A mushroom pops up after the rain with a little cap like an umbrella!

▶ what THAT plant do?!