The speed of light changes when entering some medium other than vacuum. If the frequency of the light (the number of wave cycles entering a surface per unite time) were to change, it would suggest that the boundary of the medium that the light was entering is destroying waves, which a bunch of very important people decided does not happen (in reality (experiment) it doesn't happen).
Since the speed of the light changes (frequency times wavelength), and the frequency doesn't change, then the wavelength must be changing. The speed on light in a vacuum is c, the speed of light in a material is v=c/n. Thus the wavelength must change as λ/n (λ being the wavelength of the light in a vacuum). Does this answer your question?