Ron was an arse to Hermione during their Charms class. Harry should have spoken out then but did not know what made him agree with Ron’s statement. He was jealous that she had been able to learn the levitation spell quicker than he was. Plus, his mother had never told him that he would have to constantly deal with someone acting like they were more intelligent than he was. 