I read that when an EM wave enters a dielectric material, it keeps the same frequency, while its wavelength is reduced, so that their product is a quantity less than c = 3 × 10^8 m/s.
Why does it keep the frequency and not the wavelength?
I read that when an EM wave enters a dielectric material, it keeps the same frequency, while its wavelength is reduced, so that their product is a quantity less than c = 3 × 10^8 m/s.
Why does it keep the frequency and not the wavelength?
Very briefly, because of boundary conditions.
At the boundary between the first and second media, we know that the tangential component of the E field will be equal on the two sides of the boundary. So if the E field on one side is oscillating at some frequency $\omega$, then the E field on the other side must also be oscillating with frequency $\omega$.
This is not anything specific to electromagnetic waves. It's a general fact about how waves behave. Wave equations describe cause and effect relationships that are local. If you're "doing the wave" in a stadium, the way you know it's time for you to go is that your neighbor just went. You have no way of sensing the wavelength by looking around in your own neighborhood. You can only sense the time variation of the wave.
As The Photon says, it's because of boundary conditions.
To elaborate on his/her answer: when an EM wave propagating through vacuum enters into a dielectric material occupying a different region of physical space, the boundary between the two regions is a timelike hypersurface (since its normal vector is spacelike). Therefore the "time-conjugate" part of the wave four-vector - the frequency - must stay the same in order for the EM fields to remain continuous across the boundary.
If instead you had a spacelike hypersurface boundary between the vacuum and the dielectric regions - e.g. you had an EM wave propagating through a vacuum and then all of space suddenly became filled with a dielectric - then the wavelength would stay the same and the frequency would change, because the "space-conjugate" part of the wave four-vector - the spatial wave vector - would need to stay the same in order for the EM fields to remain continuous across the boundary.