When you transfer your money from your wallets to an exchange, it lands on one of their wallets and they give you a "virtual" wallet on their system. On their platform you can trade without affecting the "outside" chain.