An expansion tank is designed to keep your water pressure from spiking too high. When the water heater is filled with cold water and then it is heated, the water expands which can cause the pressure to spike.