When the velocity is the maximum, the kinetic energy is the highest. At the bottom of the pendulum, something happens.