We already have laws saying that you cannot pirate music. It's called copyright law. The problem is that a lot of people want us to have laws saying that anyone who
completely unknowingly facilitates copyright infringement should be punished. This means that any time someone can find pirated content by searching Google, Google would have broken the law, even though it's all automated and Google has no way of knowing that it's pirated. In fact, we already have a law called the DMCA that is supposed to deal with this, by establishing the "safe harbor" provision as well as a means by which IP owners can require service providers to remove infringing content, but that doesn't satisfy everyone.
So in this analogy, our copyright law is like the laws on cars. We already have laws saying you can't drive cars past the speed limit, or do other various things with them. But we don't have any laws for wheel manufacturers that say that their manufactured wheels cannot be used by someone else in the commission of a crime. Penalizing Google for inadvertently allowing someone to find a page (hosted by a third party) that contains copyrighted content is like fining a wheel manufacturer any time one of their wheels is used as a component of a car that was used to rob a bank. Besides being patently ridiculous, there's no way for a wheel manufacturer to know which cars are going to be used to rob banks.