It simply loosens dirt from whatever surface it's stuck to, so that it can be washed away. Without water, soap is useless. If you dropped both soap and water on the floor, and then mopped them up, then the floor might be cleaner. Otherwise, you just have dirty soap.