Why were eggs rationed during world war 2?

Eggs were rationed to the general public in Britain because they were in short supply, and priority was given to feed the troops fighting the war.