Hermione had done that for her own safety, not trusting anyone else to occupy her since she still wasn't sure whether or not Neville Longbottom was a friend or foe, but suddenly she feared that if he were the latter that she had just made his job of exposing her or getting rid of her that much easier.