 In this passage, the devoted care of a true shepherd for his sheep is contrasted with that of a mercenary. The hireling who does not own the sheep and is merely hired to watch over them will abandon them whenever there's a danger in the way. When a wolf attacks the flock, the hireling will flee because he does not have any concern.