It is because some of the eggs and sperms may be exposed to water movement, wind and rainfall and may get destroyed. Also, sometimes, these factors may prevent the sperms from reaching the eggs. Thus, production of a large number of eggs and sperms is necessary (as in the case of frogs and fish) to ensure fertilisation of at least a few of them.