Why do you think it is necessary for frogs and fishes to lay so many eggs?
The reason why frogs lay so many eggs is to increase the chances of survival for the hatchlings, because they have many predators such as snakes, birds and turtles to eat them up.