The glass not only reflects but also refracts the light passing through it. This refraction is a form of distortion that causes the image to be inverted.