why is it that an object can accelerate while travelling at constant speed but not at constant velocity?

An object can accelerate at constant speed if its direction of motion changes. If the velocity does not change, neither the speed nor the direction can change.