Over the thousands of years Humankind has dealt with garbage and other wastes, they have had to deal with the biological duties of Flydom. Though flies are dirty and carriers of disease, the world would be buried in crap and carcasses if it weren't for their intervention. However, they carry disease and are really dirty, so control is an issue.
Some of the earlier controls were to take a certain poisonous mushroom and float it in milk, stinky baits with a similar funnel setup, sticky traps, and the Dog. These forms are not pragmatic for whatever reason, the dog gets full, it takes days to get the stink just right, the stink is stinky, and lack of mushrooms come to mind.
This trap is pleasant enough to keep in the house and works much better, is more efficient, than any of the other methods commonly used.