With Google Custom Search, you can harness the power of Google to create a customized search experience for your own website.
So yes, Google does exactly that. You might have a point if it was the site owners themselves creating the search boxes, but Google offers large choice of tools to do exactly that.
The solution to a problem changes the nature of the problem. -- Peer