Logging out of a site specifically invalidates the session.
Other than that, the only other time "sign out" even came up was when we moved to SSO and went round and round about if and how to implement single logout[1] and what could be expected.
1 https://www.identityserver.com/articles/the-challenge-of-bui...
Some people are using a shared computer and do not want to be remained logged in to whatever app they're using (think using your banking app at the library)
If you can login, you should be able to logout.
You could build an app that keeps your id in Javascript variables but people usually expect to be able to use a web site with multiple browser windows simultaneously.
Or said otherwise, if you close the tab and someone opens the website on the same browser later, they will be signed in your profile.