When the rope is twisted, the contact area between the strands increases, and the frictional force between them also increases. This frictional force makes it difficult for the strands to slide relative to each other when external forces act on the rope, thereby enhancing the overall strength of the rope.