Hermione let out an "oh," though as for what she had said before entering the compartment— Did she say something before entering the compartment? Why couldn't she remember?