The guy who shot him was a really bad shot—but lucky.
They were using matchlock pistols most likely. Not very reliably accurate.