Fact 1: Fungi lack chlorophyll, so they cannot make food by photosynthesis as plants can. 
Fact 2: Fungi decompose dead plant and animal matter.
Since fungi cannot make food by photosynthesis, they decompose dead organisms.