One line tracks the total energy budget of the flow. The other tracks the actual pressure the pipe wall feels. They sit at different heights for a reason.
Every point along a pipe or open channel has three components of head: elevation head (height above a datum), pressure head (from the fluid pressure at that point), and velocity head (from the fluid's kinetic energy, V²/2g). The extended Bernoulli equation says the sum of all three, minus whatever's been lost to friction and fittings so far, stays constant along an ideal path. Plot that running total at every point and you get the Energy Grade Line (EGL). Plot just elevation head plus pressure head — leaving velocity head out entirely — and you get the Hydraulic Grade Line (HGL). They are not two ways of drawing the same thing. They answer two different questions.