APIs are just drive-through windows for your database.
Instead of walking into the kitchen and grabbing ingredients yourself:
You pull up to the window
You tell them what you want
They hand it back in a predictable format
No SQL queries. No database access. Just "give me the user with ID 123."
Every app you use is just placing orders at thousands of invisible drive-throughs.