I think he's started to realize how big of an impact he had on how Penelope acted. Also, he was a little brat back then, and at that age boys think they can get the attention of the girl they like by pulling their hair and bullying them. And I guess he just sorta fell into that pattern and it became second nature to him? He looks like an oblivious tsundere who is slowly coming to some realizations.