Exactly, that was my point.
hiQ's public scraping was found to be legal. It was the logged-in scraping that was the problem.
The logged-in scraping was a breach of contract, as you said.
The former is fine; the latter is not.
What OpenAI is doing here is the former, which companies are perfectly within their rights to do.