Also know as “roof felting,” it protects the roof deck from moisture prior to the shingle installation.  It does provide a minimal degree of protection should water get under shingles.