It does not think at all. It vibes based on its training and any additional bolted on constraints. It is a quite simple automation that only works by huge amount of existing data.
Modern man has grown quite dumb. He only seems to be able to "invent" by massive scaling things that are decades or centuries old..
Out of curiousity, can you share a human invention that is not merely scaling things that were decades or centuries old at the time?
Fire? The wheel? Archimedes screw, maaaaybe?