A second thing identical to the first. Also written text prepared for publishing — both are reproductions of something.
Latin copia (abundance, plenty), via Old French copie; the sense narrowed from plenty in general to a reproduction, on the logic that a copy is one more of a thing that already existed.
A second thing made identical to the first. Prepared text meant for publishing carries the same name, because both are a kind of reproduction of something already decided.