Doppel means double and ganger means walker. Thus a doppelganger is a double walker. This was based on a belief that people have an alter ego that looks like them, but is ghost like in nature and if they encounter doppelganger face to face, bad things will happen.