That happened long after they completely dominated search. They succeeded because of quality, and because of how low quality all the other engines were.
There was a time when Google was thought of as a respectable, high-quality, smart and nimble company. That has faded as the marketing grew.
Google's overwhelming victory in search had ~ nothing to do with marketing.