hey can compete with Google for search.
—
Google makes its money on selling ads, not search - I believe.
Yes, companies buy ads to appear that are relevant to the search query. Microsoft does the same. If people move their search to another engine the advertising money goes with it.