Gmail has a default Archive folder called All Mail, which already pre-archives all mails. An Archive command for Gmail essentially removed the mail from Inbox and that’s all (as it is already part of All Mail). This is Gmail specific behavior.

To archive an email by default, you need to change the settings of discard action to Archive inside your Gmail account (Settings | Choose your gmail account | Move discarded message into | choosing Archive folder instead of Trash folder).