Roundcube is an IMAP client, it interacts with your IMAP server it does not move anything between any folders on your server. What you are describing is, I think, the standard behavour for any IMAP server with a Maildir setup - messages placed the new folder when they first arrive but as soon as they are picked up by a client the are moved to the cur folder.