In his defense, machines are at least somewhat sturdier than organic lifeforms. It isn't that much of a stretch to assume a bullet to the leg would be less a life threatening injury and more an escape thwarting inconvenience to a bot.