A mixture of oil and water is a good example of an emulsion ... oil and water from separating (and thus the food spoiling), soap-like chemicals called emulsifiers are added.
It's easy to assume that more detergent means cleaner clothes ... water could influence your measurement. For example, you may be able to add more soap if the load is especially dirty or oversized.