ELIZA was actually an AI platform, which made it possible to write all kinds of AI bots. The "doctor" program was a tiny example program, like a hello-world for the platform which was capable of much more. Here's a description of how ELIZA worked: https://csee.umbc.edu/courses/331/papers/eliza.html