The controller uses PWM(Pulse width modulation) to spin the pump. The beeep noise is the controller sending a signal to spin the pump. If you unplug the pump.. it wont beep anymore
Ever played with a remote control car.. same scenario to run its motor.