They carry bacteria on their body and pass them onto your food when they land on the food. It is thus important to keep flies away from us to prevent being infected by these disease-causing bacteria. Flies are attracted to human food and rotting materials.