Because air resistance is being ignored, the ball has the same amount of energy at any point in time. The energy simply gets inter converted between kinetic and potential energy as the ball gets higher and slows. No more energy is added or lost after it leaves the thrower’s hand.
Hope this helps!