I think they were burying all of the bodies. Rick and Tyreese were each digging a grave at the end. They only lost Bob, so something else has to go in that second one.
Not only that, but Abraham also joined in on the brutality. He was bashing in a guy's skull repetitively with the butt of his gun.