How did chickens know to lay aborted eggs for human consumption?

Otherwise, what purpose would they serve? Thank you
Update: Check mate Athist
10 answers 10