Most likely, trial & error as to what the maker preferred…
IMO- it was the British and their agreement with engineering genius Sir Joseph Whitworth in the 1850’s - 4 years of trials/experiments/testing (400yd inclosed range) to establish the 52bore (0.451”) 1:20 twist that set the tone for twist...