Here's why it happens:
* Density Differences: Light travels at different speeds in different mediums. Water is denser than air, and light travels slower in denser mediums.
* Change in Direction: When light enters water, it slows down. This change in speed causes the light wave to bend, or refract. The amount of bending depends on the angle at which the light enters the water and the difference in density between air and water.
Think of it like this: Imagine a car driving on a smooth road and then suddenly hitting a patch of mud. The car slows down and its path changes direction. Similarly, light waves change direction when they go from air to water because they slow down.