Hermione was not overly discomfited by the situation. Yes, she was in gaol, but Draco was not – and out of the two of them, he was the one who had any hope of exerting influence to get her out. He might be reckless on occasion, but he was never stupid. She trusted him. He would get her out.