Well there is not much to go off of, but I am very confident the answer would be studying fossil records,
Decomposers work best in moist dark places.
They had to change their eating habits and probably the places they lived, making them have to forge for food and roam around looking for a place to live, making them vulnerable to predators and other things