Hard water, for example, has higher mineral and deposit content that can overwhelm a surfactant, so other chemicals have to be added to the shampoo to counteract the ions that make the surfactants ineffective.
As for water type, hard water that has a high mineral content can weaken the taste of tea, so it's best to use filtered water in your kettle for the optimum results.