L'Oréal interview question

during the technical interview: explain why adding salt increase the viscosity in a shampoo formulation.