POP3 and IMAP are both email protocols that email services use to receive emails. But POP3 is older and IMAP can view your mails without actually downloading them.
After visiting the inbox or post-box, POP3 always empty them and take the origin mail but IMAP only takes a copy.