I seriously doubt it came from the factory like that. More likely is very poor take down procedure by previous owner/owners. If the recoil spring was installed backwards it can be very difficult to remove or reinstall the slide. What does the front edges of the slide look like?
To minimize "galling" (damage) in that exact spot, on both slides of the frame, I apply a tiny dab of Tretra gun grease before reassembly. Additionally, upon reassembly, the slide must be pulled fully to the rear and then fully seated (flat with zero tilt) before allowing the slide to move forward. Also, in my experience, this type of rail damage is not uncommon on stainless steel Rangers but is rarely seen on carbon steel PP series pistols.