It is noted in the Automation > Application Scripts section of the built-in Help and manual, attachments are imported separately. Logically they wouldn’t be intermixed with emails containing no attachments so they’re put into groups.
If you want to preserve the structure in Apple Mail, why don’t you use the Archive Mailbox function in the Emails section of DEVONthink’s View > Import sidebar?