Its certainly an option. Chickens can live 7-12 years so that's a lot of feed for a chicken to not produce eggs. More economical to make soup. Their livestock, not pets.
In the UK, a big sack of feed for chickens costs around £12, and that will feed 15 chickens for a week (roughly). So I could be wasting 80p/week per unproductive chicken.