Scanning is, under the right circumstances, allowed in the US, at least per the Second Circuit appeals court (Connecticut, New York, Vermont): https://en.wikipedia.org/wiki/Authors_Guild%2C_Inc._v._Googl....

They (OpenAI and Anthropic) operate their platform and distributes these copyrighted works outside, where these foreign laws applies