Sometimes a hen will learn that the eggs have a treat inside - usually accidentally. Once they learn that, it's REALLY hard to get them to stop eating their eggs.
Most people end up having to cull their egg eaters; some will try things to break them, but they're usually unsuccessful. Good luck