Medications are important for nursing sick fish back to health. It is also very important to use a product such as Pro Coral Cure from Tropic Marin on all your new coral additions to prevent new parasites from entering your tank and attacking your established corals.
In general medications are also good for keeping unwanted life out of your tank such as aiptasia, flatworms or red slime algae.