How is fungus helpful to humans?

It decomposes dead organisms in order to return nutrients to the ecosystem