Notice that in this idealized example we start the pendulum from initial conditions of position at the extreme right and velocity at zero, as though holding the pendulum still and dropping it at time zero. The pendulum returns to exactly the position from which it started because we do not allow for any loss of energy from our system (the pendulum) as would be the case if there were friction or air resistance.