Can your diet cause you to overeat?

Why is it that we tend to eat foods like french fries and cookies until our belts pop, but that doesn’t happen with carrot sticks and apples?