Yes, Google makes money from their advertising.
But Google does things that directly limit their ability to make money from advertising, when those decisons are in the interest of consumers.
Take the whole design and UX of Chrome. There are many, many ways Google could have changed the design to make more money from it, and yet they haven't because they aren't in the interests of the users.
Additionally many (both at Google and elsewhere) believe (and can show evidence) that advertising can improve the user experience when it is done properly.
Companies (especially those with a share structure like Google's) can exist to care about more than just making money.