Is copyright law not a type of contract? Was copyright law not violated, repeatedly, in the training process of LLMs?

Copyright law is not a contract, no. It is statutory. Contracts require agreements and "consideration" in order to enforce the contract. Copyright does does not require these things. So to your second question, I'd argue yes, it was violated. But IANAL, so the courts would need to answer that question.