Why is light refracted when it crosses from air to glass?

GCSE