The initial force exerted by a person throwing a ball upwards does work
It causes energy to be transferred from the chemical energy store of the person's arm to the kinetic energy store of the their arm
Then energy is transferred mechanically from the kinetic energy store of their arm to the kinetic energy store of the ball