But if you're writing an API to access a proper web application, it needs more than just data retrieval, and it needs ACL, and it needs to not show things to certain people, and allow bi-directional communication, and all sorts of other things.
And HTML webpages don't have that? Let's take HN:
* ACLs: ✔ I have an account and I can't post as other people.
* Hide things from certain people: ✔ I can't see your email
* Allow bi-directional communication: ✔ I can post this very message.