It depends on where you set your zero.
the first one sets as zero GPE at the surface, while the second one "at infinity" these are chosen to make the equations look nice.. without any funny terms. One can add a constant to GPEs and the theory will not be any different
as mentioned in the...