Fact 1: an egg requires warmth to survive. 
Fact 2: First the frog lays the eggs, then the warmth from the sun makes the eggs hatch into baby tadpoles.
Heat from the sun helps frog eggs survive and hatch into tadpoles.