why do fish and frogs lay eggs in hundreds