It prevents disease from spreading to other fish in your tank. If you buy a new fish, and it ends up having ich, if you have limited that fish's contact to just your QT, then it won't spread to your display, or to your other fish.
In a QT, you can also treat whatever problem comes up with a new fish before it goes into your display. Display tanks should remain medication free.