Why do people who have no idea how some thing works feel the urge to comment on its working? It's not just AI, it's pretty much everything.
AI does learn, that's the whole shtick and that's why it's so good at stuff computers used to suck at. AI is pretty much just a buzzword, the correct abbreviation is ML which stands for Machine Learning - it's even in the name.
AI also recognizes it looks at a human! It can also recognize what they're wearing, the material. AI is also better in many, many things than humans are. It also sucks compared to humans in many other things.
No images are in its database, you fancy Xerox.