I think it was designed to cut down glare and to help focus the eyes to a point of aim, much like a rib does.
One of the guns I grew up with was my grandfather's Marlin model 42.....a slide action pump with exposed hammer and 30" full choke barrel......and it had a similar type of matting pattern on the top of the barrel.
Den