Turning mark, it came from the initial turning (machining) of the barrel, usualy it's removed by the polishing / finishing of the barrel.
Absolutely impossible to come from contact with frame/slide, contact scratch will be in the bore axis, not perpendicular to it, as the slide/barrel movement are in the axis bore.