The global menu bar is one of the things that macos just got right. You always know how to acces your basic functions, like closing the application, saving, etc... without having to look in the UI for that small button that does the same thing.
Another advantage of the menu bar is, that you can always see which shortcut belongs to which action, because most items have a shortcut displayed next to them. On Linux and windows it is trial and error, or looking them up online.
Also it makes the windows look a lot less cluttered.