Seemingly the surface of the windshield looks smooth, but actually there are numerous bumps on the surface. On a rainy day, rain drops hit these bumps and be crushed, which leads the diffuse reflection and hinders your vision while driving.
The glass coating will make the surface smooth with water repellent ingredients. The surface causes water drops to bounce and repels water with wind pressure. This is the secret why it improves visibility!