Does an egg know it is going to become a hen--or maybe a fish?
Hens and fish are alike in that they both hatch from eggs.
Eggs know for certain that they will all hatch into chickens. It's simple logic.