Question: why are doppelgangers used in literature?
Answer: It may be used to show the “other self” of a character, which he or she has not discovered yet. This “other self” could be the darker side of the character that troubles, or the brighter side that motivates. Hence, the use of doppelganger helps writers to portray complex characters.