Why does cooking cabbage attract flies?
Cabbage itself does not attract flies. However, the smell of cooking cabbage can attract flies because they are attracted to the sulfur compounds that are released during cooking. These compounds are what give cabbage its characteristic pungent smell. Flies are also attracted to the moisture that is released during cooking, as well as the heat.