In a coffee machine, a cup seal is used to prevent any leakage of hot water or steam from the internal components, ensuring a safe and efficient brewing process. A damaged cup seal in a car's brake system can lead to brake fluid leaks, reduced braking efficiency, and potentially dangerous driving conditions, as it affects the proper functioning of the brake calipers and cylinders.