Presumably the agreement is worded in a way that prohibits that, but considering that lots of model outputs go on the internet just to get trained on anyways Anthropic/OpenAI can fuck right off.
I don't see them as having a leg to stand on with this in court; they can only cut off your access for egregious violations.