
When you search a web tool like Google, you are searching every word of every page of every document, from beginning to end. There are no rules about what goes into Google, so you get a mix of everything. And, Google can't always tell the difference between a page or article that is all about your topic, and a page or article that mentions your topic only once or twice.
When you search in the library research tools, like the catalog or (most) research databases, you are actually just searching short "profiles" of the book, article, or other source that you are looking at, rather than the whole source. Because the profiles are very short, searching for entire sentences or phrases does not usually work well in library resources.
But, if a source comes up because its profile mentions your topic, it's much more likely that the source will actually be on your topic. And while the research tools have many different types of sources in them, they're all published sources, so they've been checked for quality on at least a very basic level.
If you search google or any other search engine as though you were searching a library database, you may actually get better results. Using concentrated keywords to search for a topic in the google algorithm eliminates a lot of results that only appear due to partial matches to your question. Go ahead and try it!