Sheet music became commonplace in homes starting about 1840. Postcards came along some years later, but when the songwriters put their pens to a score postcards and music were a perfect match.
Imagine, an upstart kid from Illinois, draws a pipe smoking sailor with exceptional strength gained from eating spinach. The sailor meets Mr. Oyl’s daughter, Olive, and every comic strip reader in America goes crazy.