He didn't graze the ear deliberately.
Look at the video again. Trump is looking to his right, and then *just* before he grabs his ear, he turns his head a little more to the right. It looks to me like that last turn added the margin that was needed for the shooter to miss.