maggots eat rotten meat, if we didn't have flies we would have to wade through mountains of animal corpses
Theyre also useful in medicine, since they only eat rotten flesh and leave live flesh alone. Therefore you can stop an infection by having maggots eat the rotten flesh around the wound