Some people use chat software for more than just chitchatting and want the history as a memory.
This is the reason why mattermost exists - the devs lost their chat history of some enterprise solution and thought: never again. So they created mattermost.