For sessions: The player wasn’t unregistered from the session or the call failed. Make sure to call EOS_Sessions_UnregisterPlayers and the result is EOS_Success For lobbies: The player didn’t leave the lobby. Make sure to call EOS_Lobby_LeaveLobby and the result is EOS_Success.
https://dev.epicgames.com/community/learning/knowledge-base/Re1RB/epic-online-services-why-is-a-player-still-shown-as-in-a-session-lobby-after-leaving-it