There are two different types of dirt, water-soluble and non-water-soluble.
Water-soluble stains, like coffee, can be dissolved with only water if you soak them long enough.
There are different types of non-water-soluble stains and different methods for getting them out.