Mail.app: Moving Emails from local folder to imap folder -> HDD space decreases temorarily
My hypothesis is that what you observe is happening because you are setting your IMAP account not to have all the message for offline consumption, but only headers. If you had it set to full messages, you would be decreasing your space even more, because the IMAP metadata needs to be kept in a database, apart from the full messages.