You don't know what he is doing, so you can't guess his real reaction. Maybe he was reading a novel, and after reading it, he felt a lot about the story in the book. So I wrote such a sentence.
Maybe he wanted to do a bad thing, but his heart didn't allow it, and then, at that moment, he did it anyway.
There are many reasons anyway.