detergent
They are intended to loosen soil from fibers and keep it suspended in the wash liquor.
It's not just scent or packaging that matter, but whether a product is suited to the fiber, the temperature and the degree of soiling.