Sure, the incentive to compost is the putative reason for this regulation, but exactly how is it enforced? In order for city officials and trash collectors to know you have committed the civic sin of disposing of leftover food in your trashcan, they have to examine the contents of your trashcan.