A optical lens produces its focusing effect because light travels more slowly in the lens than in the surrounding air, so that refraction, an abrupt bending, of a light beam occurs both where the beam enters the lens and where it emerges from the lens into the air.
http://www.visopto.com/optical-lenses/