Imagine a huge library with millions of books. You want to find a book about "baking chocolate cake." Instead of searching every shelf yourself, you ask a super smart librarian who knows exactly where every book is and what it contains. This librarian has already read and remembered the main ideas of every book in the library. When you ask, the librarian quickly finds the best books that match your question.
This is how a search engine works. The internet is like the huge library, and the search engine is the smart librarian. It doesn't look at every page live when you ask; instead, it has already read and organized information to find answers fast.