The expansion tank is designed to handle the thermal expansion of water as it heats up in the water heater, preventing excessive water pressure. If water pressure gets to high it can damage valves in plumbing fixtures, joints in supply pipes and the water heater itself.