They are part of a group of organisms known as decomposers, which turn organic material into soil nutrients that are essential for plant growth.
In a forest, decomposers help other organisms survive because they they put nutrients into the soil that plants use to grow.