Logging out of Messenger on your iPhone ensures the security of your account and messages, especially when using a shared device or accessing it from a public network. It prevents others from accessing your conversations and personal information.
Additionally, logging out helps refresh the app, potentially resolving any glitches or issues you may encounter while using Messenger. It can also help free up memory on your device, as the app stores temporary data during usage.