Avoiding accidental spills? Maybe if you're carrying the box of detergent in your laundry basket/box/bag? I used a bottle with a lid.
BTW, I used to know someone who kept insisting (loudly) that I should have bought something sold for that purpose (carrying detergent powder). It couldn't have been any better than that old shampoo bottle.