Different speeds of light through two separate media ... and the difference in wavelength caused by the difference ... causes the bending of waves fronts associated with light rays.
AFTER the bend, since the light rays then travel in a different direction, we may also say that the 'velocity' has changed.