Wipers are installed in hydraulic cylinders to scrape off dirt, foreign particles, chips, moisture, and other contaminants from the piston rods entering the system. This prevents contamination of the hydraulic fluid, which can cause damage to guides, seals, and other components.