Each gain in height corresponds to the loss of speed as kinetic energy (due to speed) is transformed into potential energy (due to height). Each loss in height corresponds to a gain of speed as potential energy (due to height) is transformed into kinetic energy (due to speed).