Because one type of energy is converted to the other and back again.It is really cool how this works!Notice how PE is highest at the top of the swing and zero at the bottom.And KE is highest when the pendulum swings the fastest (at the bottom of the arc)....