Hammond's booking was due to the amount of foulds he had committed not the last one on it's own He had committed at leat 5 fouls upto then so the booking was a totting up
Well, that is why you do get a lot of late bookings (totted up fouls over the course of a match). Still irritating though.