Why does the total energy (Ke+Pe) decrease with height?

is it being changed into gravitaional potential energy? I don't know what you are dealing with.