Soaps and detergents are surfactants. Their molecules accumulate at the water surface and reduce the cohesive attraction among water molecules, lowering surface tension. That is why soapy water spreads and wets surfaces more effectively than pure water.