“I guess I’m not ready to join the land of the living just yet,” Harry says. “Need a little more time here at Hogwarts, with all the ghosts. You know what I mean?”
In the aftermath of the war, Harry doesn't feel ready to leave the safety of the castle, and to go out into the world at large: he wants to stay. The Room of Requirement — with great reluctance — grants his wish.