Stay outside in unsanitary conditions with an unclean wound and the maggots will find you. Eggs in the dirt, maturation triggered by moisture and body heat? I don’t know.
Or perhaps flies landing on the wounds and laying eggs?