Definition of Quasi-static: A quasi-static process is a thermodynamic or mechanical process that occurs very slowly, allowing the system to remain in a state of equilibrium at all times.
While explaining Potential Energy, we take an example by lifting a block of mass 'm' from the ground (H = 0, No kinetic energy and Potential Energy) to H = x, very slowly in "Quasi-static" manner. But according to the definition, if there state of equilibrium, how will the block even be lifted and taken up? After lifting, there can be equilibrium with mg and ext.Force and the block can move with constant velocity. Again at H = x, the block needs to be stopped and there cannot be equilibrium.
And why do we need a quasi-static process to explain Potential Energy in the first place? Why shouldn't the external force just lift it quickly?