AI isn't coded. LLMs aren't deterministic algorithms, as a traditional program/app is created, they are trained, not coded, more like you'd train a human to do something, and they learn. And no one fully understands how they work or how they think, even the people creating and training the models. They understand the maths behind the training but don't fully understand why LLMs "think" as they do, any more than we fully understand how organic brains work.