Maggots are still used in the medical community because they only eat the necrotic flesh allowing healing to take place. What was sad was the poor man ending up in this situation.
There are certain kinds of maggots that will not eat healthy tissue. There are other species however (either screwfly or blowfly) where the larvae eat healthy tissue as well. Usually cattle have a big problem with these.