there is a very famous german television show for children - and one of their movies shows very precisely how screws are made:
the thread is pressed into the rod.
this will also lead to more strength instead of cutting the thread.
…this means the final ending of the cut / helix - V-shape is given by this mechanical process.
link to the other already very elaborated topic about nuts…