Pipe sections machined at both ends have their ends machined in a defined manner. Chamfered internally and externally at both ends.
Smooth and parallel plane surfaces with very tight tolerances or, as the case may be, diverse other forms of machining at the tube ends.