SMTP and IMAP are two different protocols, usually implemented by two different server software systems. On smaller deployments, they are often hosted on the same server, in which case the names are redundant.
On much larger deployments (say gmail
or yahoo
), they are hosted on separate servers, or sometimes on separate groups of servers, using multi-record DNS or a load balancer or even more exotic systems.