In questions like this you first place the mass on the spring.
The spring extends. The mass is then stationary there. In equilibrium. So there is no motion. Extension = e
If you want the mass to oscillate you have to displace it from its equilibrium position, so you extend it a bit more. (x)
The mass then oscillates about its original equilibrium position.
The question asks for the maximum PE stored in the spring. Not the PE of the mass.
PE stored in this spring depends on its extension. The bigger the extension, the more the PE.