The compiler analyzed it, optimized it, and emitted precisely the machine instructions you expected. Same input, same output.
It’s fair to say that the topic of so-called ‘AI coding assistants’ is somewhat controversial. With arguments against them ...