The correct ground-state wavefunction for a 1D PIB is a sinusoidal function.
A parabolic function has a similar shape, but does not solve the Schrödinger equation. Using this as a trial function gives a variational energy that is slightly higher than the true ground-state energy.