Programs can have many windows open on other OSes too, all doing different things. They can also stay running after the last window has been closed.
The question is what the default behavior of applications is, and macOS is just plain inferior to other OSes in that regard.