Apple's Photos application and its predecessor iPhoto both quit the application when the last window is closed. So do Apple's Reminders and Notes applications. Almost every other MacOS app keeps the application open (and in the dock) when the last window is closed. Go figure.