Inconsistency for Gmail and Exchange in Mail.app
Mail.app just mimics whatever structure is defined on the respective mail server. In Gmail folders are just labels (or saved searches for labels) so they show up outside of Inbox (as do iCloud folders actually, even though those are not searches). 

If you want to unify the way folders are represented you probably should checker whether Exchange allows to create folders outside of Inbox.