Most automatic trash cans have an odor filter or deodorizer that seals the odor in and prevents it from escaping.