When the bob is at the highest point of its swing, it has no kinetic energy, but its gravitational potential energy is at a maximum. As the bob swings downwards, gravitational pptential energy is transferred to kinetic energy, and the bob accelerates.