Compared with. The word that introduces the other side of a comparison.
Old English þanne (then, than), from the same Proto-Germanic demonstrative stem as that; comparison and sequence in time were not fully separated words until later English split them apart.
Compared with. The word that introduces the other side of a comparison, once inseparable from the word for what came next in time.