Before Cat in the Hat, Theodor Geisel (a.k.a. Dr. Seuss) illustrated ads for companies such as Standard Oil.
A bunch of other kidlit artists (Eric Carle, Leo Lionni, and Rosemary Wells included) “cut their teeth in advertising,” according to this article from collectorsweekly.com.