Light travels through different mediums before it reaches our eyes. Since its propagation speed depends on the density of the medium, it breaks at the boundary of different densities. The image of objects does not come into our eyes from where they are, but rather from where we think we can see their shape after refraction.