Velocity is not constant. It is always changing in this case because it's a sine curve. At each infinitesimal moment in time, the ball's velocity is changing. In other words, dv/dt does not equal zero. Imagine tossing a ball up into the air. You would apply the classical equations of motion to describe the mechanics of the ball, correct? Would you say that the ball's acceleration is zero at the top of its climb? Or imagine dropping a ball from a window high above the ground. At the moment of release, the ball has zero velocity. But does it experience acceleration?
What's important is the change in velocity, not the absolute velocity, i.e. dv/dt.