Every cliché is, by name, a printing plate. So is every stereotype, and the two words were once near-synonyms on the same shop floor.
Printers once saved work by casting whole pages in metal. Wikipedia describes one form of this. A block of set type was pressed into molten type-metal to make a matrix, and a solid plate could be cast from it and reused. The French name for the plate was cliché, the past participle of the verb clicher.
The verb seems to be an imitation of a noise. Dictionary.com says the name is thought to echo the sound of metal pressed against the matrix. Merriam-Webster calls it onomatopoeic, imitating the die striking the metal. Wikipedia glosses clicher simply as "to click."
English borrowed the technical word first. Wikipedia and Dictionary.com both put it in the printing trade by about 1825. The figurative sense followed naturally: a phrase reused so often that it seems cast in metal. Etymonline dates it to 1888, though it was not common until the 1920s. According to Merriam-Webster, the word entered English dictionaries in the 1890s, and the OED marked it as a foreign word. By 1923 Havelock Ellis could complain in The Dance of Life that "cliché" was itself a cliché, "a worn counter of a word."
Stereotype took almost exactly the same road. The Saturday Evening Post says French printers were calling their solid cast plates stéréotypes, "solid type," by the end of the 18th century. Wikipedia dates the first English use outside printing to 1850, for an image perpetuated without change. Walter Lippmann gave it the modern psychological sense in Public Opinion in 1922.
Merriam-Webster adds a third relative from the same world: boilerplate, a name for standard, formulaic wording such as contract language.
There is a small joke in the history. English needed a word for borrowed, overused phrases, and it borrowed one from French. Merriam-Webster translates the French original simply as "stereotype."