This may not be the actual story: He was sitting in his boat smoking a cigar and happened to note the direction and speed of the smoke relative to the direction and speed of the boat. Having some mathematical skills, he determined a formula describing that motion and extended the result to astronomy, which was one of his favorite activities aside from sailing and smoking.
I do neither so I am destined to end up a nobody. :-)