As all cool cats know, ragtime was precursor of jazz and is heavily syncopated, but with a strong beat.
To its listeners in the late nineteenth century, the timing was most certainly ragged, compared to the tunes with which they were more familiar.
What more logical than that this music of “ragged time” should become popularly known as ragtime?