Ciao began as "I am your slave."
In 16th-century Venice, "Vi son s'ciavo" ("I am your servant/slave") was a polite formula, not a greeting. The initial s- fell away through aphaeresis, the preamble dropped, and by the 19th-20th century ciao was de-semanticized.
The Venetian s'ciavo descends from Medieval Latin sclavus, which shifted from ethnonym to status term through the medieval Mediterranean slave trade.
The word survived by losing its meaning.
4 media files