The dimples on the ball appeared when golfers noticed that older balls with scratches and damage on the surface flew farther than new, smooth ones. Initially, they started creating various indentations on them themselves, which improved their aerodynamics. The dimples could also help drain water from the surface of the ball, which is especially important in wet grass.
The first mention of a factory producing golf balls dates back to 1554. They were produced by shoemakers and saddlers.