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 sentence

Natural selection likely favored the ability for red-eyed tree frog eggs to only hatch up to two days earlier in response to vibrations in order to ensure that the embryos have enough time to develop and survive once hatched. Hatching any earlier than two days before expected may have resulted in higher rates of unsuccessful hatching and reduced reproductive success, leading to this trait being selected against.