The rifling grooves were originally designed as a place for the fouling to go during loading, so the shooter could get more shots off between cleanings or wipings of the barrel. They were straight grooves. One day a guy had the idea to spiral the grooves, which would create more groove area in the bore. While it probably worked for that purpose, it gave the ball a great increase in accuracy.