The definition of work in physics is, the measure of energy transfer that occurs when an object is moved over a distance by an external force at least part of which is applied in the direction of the displacement.
Therefore, the work that's been done causes a change in the overall energy of the system. It's what causes the change from potential to kinetic.