A lens does for radio waves what a lens does for light
A horn radiates a wave that spreads. The lens seated in its aperture collimates that wave into a nearly parallel beam, the way glass does with light. The antenna becomes highly directional and its gain rises, while the horn keeps its geometry, band and broadband match.