Computers work with numbers. IP addresses like are efficient for routing. But humans think in words. You remember "amazon.com" not "."
DNS bridges this gap. It's a distributed database that maps names to addresses. You type the name you remember. DNS finds the address the computer needs.
DNS also provides flexibility. If Amazon changes their server's IP, they update DNS once. Billions of users keep using "amazon.com" without knowing anything changed.