Expansion pipes are used in plumbing systems to allow for the expansion and contraction of water pipes due to changes in temperature. When water heats up, it expands and can put pressure on the pipes, potentially causing damage or leaks. Expansion pipes provide a space for the water to expand into, reducing the risk of damage to the plumbing system. They help to maintain the integrity of the pipes and prevent costly repairs.