Treasure cards work like a reserve you can draw from mid-battle, and the sequence matters.
So the trade is deliberate: you spend a card from your hand to fish the treasure card out of your deck. That makes them best used for a specific spell you know you'll need, rather than something you plan to spam.
One clarification worth adding, since it's a common point of confusion: you do still need to draw the treasure card into your deck's rotation for the discard trick to have anything to work with.