If an object changes direction (as the moon does as it orbits the earth), then its velocity will change as well (as velocity considers both speed and direction). As the objects velocity is changing, this means that it must be accelerating (as acceleration is just a change in velocity).