Humans have been known to recite entire parts from plays from memory, live in front of audiences even.

And they are legally required to license the play to do that, if it's still in copyright.

Only to perform it, not learn it.

And LLMs perform when you prompt them.