That's full-screen, not maximised[1].
It's also something I hate - I make an app full-screen and suddenly it's on a different desktop, so my awareness of what apps are on which desktop is completely gone - I can no longer to ctrl-alt-right twice to get from my golang desktop to my browser desktop, I need to move away from my keyboard, lean over to the macbook and three-finger swipe.
As far as Apple are concerned, no one ever docks their MB into an external screen, keyboard and mouse. You're supposed to do all of your work squinting.
[1] Someone will no doubt correct me if I am using the wrong terms.