We have no idea what the illustration shows, because you neglected to let us see it.
The most common reason for light to bend is refraction, normally caused by a difference in the speed of the light in two different media ... the one it comes out of and the one it goes into.