Ron wasn't doing his charm work because he had promised to do it with Daphne since she was struggling with the theory so the trio sat in the library while Hermionie worked. Ron tried to distract her and Harry was reading a random book he had picked up off the shelf nearest to them.