There are occasions where you may be asked to completely log out of Microsoft 365. This may be used as a troubleshooting step for a variety of issues or for other reasons.
Microsoft has provided documentation on how to sign out of Microsoft 365. The article can be found here.