Flies are kept away by a bag of water because it provides a peculiar light reflection that repels them. The coins in the water reflect the light, which suggests a water body to a fly. Most flies avoid water sources because they would rather eat decaying food.