Many people become attached to pets and don't want to have them "put to sleep" when they are old and sick. The whole business about Candy's dog was put into the story to establish that there was a gun available, so that George could steal it and use it later to kill Lennie. Carlson explains where to point the gun so that the dog's death will be painless, and so George knows where to point it when he shoots Lennie. Furthermore, Carlson cleans the Luger carefully after using it, and George is able to see exactly how the German automatic pistol works and where it is kept under Carlson's bunk. Carlson is a middle-aged man. We assume without being told that he served in the army in Europe during World War I and brought the Luger back as a souvenir. Steinbeck wanted a handgun that was readily recognizable, so that when George takes it out of his jacket to shoot Lennie, the reader (and eventually the theater audience when the novel is adapted into a stage play) will understand that it is Carlson's gun. A German Luger is a very distinctive-looking weapon. Steinbeck knew that every scene in a work of fiction should be dramatic. Drama involves conflict. He devised a conflict between Carlson and Candy over killing the dog in order to make the scene more interesting. The conflict is: Carlson is bothered by the old dog's smell and wants to shoot it; but Candy is attached to the dog and doesn't want to let Carlson shoot it. The conflict is resolved when Candy yields to pressure and the dog is shot. Notice the amount of explanation Steinbeck has given to the way Carlson unloads, cleans, and reloads his Luger after shooting the dog. The gun is what in Hollywood is called a "plant." A weapon is shown in advance, so that the audience won't wonder where it came from when it is used later in the story. If George had pulled a gun out of his pocket when he joined Lennie at the river, the reader/viewer would wonder where he got it if he didn't recognize it as Carlson's Luger. George intended to kill Lennie from the time he left the ranch. His possession of the stolen Luger proves his intent. The men thought Lennie had taken it when he fled. This was convenient for George, mainly because he could let everybody assume that he had taken it away from Lennie and shot him in self-defense, using this as an alibi to avoid prosecution for what was actually first-degree, premeditated murder.