It can also reduce the temperature drop between two waves.
Also, heat exchanged may compensate for some temperature drop in the membrane due to enthalpy of gas separation.