The silver nitrate is in solution and the metallic copper will dissolve to form copper nitrate; as it does, it will precipitate the silver in solution as metallic silver. That is, copper is exchanged for the silver in solution and silver is replaced by the copper that is not in solution.