The dark truth about keeping chickens and many other poultry is that they hatch in an approximately 1:1 male:female ratio, but can't be kept in that ratio without severe conflict and stress. Thus, hatching chickens to keep for egg-laying requires killing most of the male chicks. So yes, you have to kill chickens to eat eggs.