Indeel all the energy has to be lost during the descent, otherwise the airplane would accelerate to supersonic speeds. We cannot apply Energy conservation law.
I think it is just geometry. The gliding ratio is the same as the L/D ratio.
It comes directly from a graph.