On macOS, closing an application window using the close button should not quit the application. This is windows behaviour. Currently, the Teams macOS app does this wrong and it's messing with my mental model.
Hi, you can control this behaviour from the settings menu within the Teams client (which you may access at the top right by clicking the elipisis). The option is shown below "On close, keep the application running"