Why does glass let us see through it?

Glass lets most light pass through instead of scattering it in all directions.