Fair use comes from Berne Convention §10 (snipet):
“It shall be permissible to make quotations from a work which has already been lawfully made available to the public…”
I guess OpenAI and Google use that to be able to build search and training ML-models. Almost all countries in the world is bounded by that.