RT Would someone be so nice to explain to a stupid (me) a couple of things (retinex/dehaze)

The tool in RawTherapee which is now called Retinex was originally called Dehaze. I too am curious as to how it could be used to remove haze from the distant parts in the middle of this image without significantly affecting the rest.