Search engines have a big difference which is that they usually direct you to the original website.
It’s basically the “does this replace the original content” doctrine of fair use
What you're thinking of is "featured snippets". As far as I know, the justification behind those is that they are exact quotes that are followed by a citation (a link). Google argues those are fair use, since it's a properly referenced quote.