why is the pump in EDFA amplifier used?
The pump laser provides power for the amplifier.  Without power the amplifier cannot amplify.  The pump laser is of a shorter wavelength than the signal, which provides the energy for stimulated emission in the amplifier.
See: https://www.rp-photonics.com/erbium_doped_fiber_amplifiers.html