It requires data to be correct and up to date; and depending on what it is made to do, it will be a far more vast data set and more discriminating than a simple ‘internet search’. It will need to take into account unique aspects of the particular problem it is working on - which might be different in every case - and know how to weigh what it ‘sees’ and make comparisons. All at a speed no person could manage.
It’s not just roaming around scraping information from the Web like a search engines does. It’s not going to be perfect for a long time, if ever; but it has great promise in many fields.
I’m not an expert on this, but there are lots of really good videos explaining the basic functions of how various types of AI are created to perform.
Just because the front of that junkyard pickup is totally wasted, don’t let that keep you from purchasing the tailgate you need.