Red-eyed tree frog eggs can hatch up to two days earlier than average when they detect vibrations. However, if they hatch more than two days earlier than expected due to vibrations, the embryos are typically not developed enough to survive outside of the egg. Explain how natural selection inhibited frog eggs from hatching any earlier than two days before expected hatching. Explain your answer in 1–2 sentences

Natural selection likely favored red-eyed tree frog eggs that hatched up to two days earlier when detecting vibrations because this timing allows the embryos to be sufficiently developed for survival outside of the egg. Eggs that hatched more than two days earlier likely resulted in offspring that were not as successful, leading to the evolution of a mechanism to limit early hatching.