The reason why laundry detergent works is because of the cleaning enzymes. These enzymes are designed to pull dirt off surfaces. When combined with hot water, detergent can also kill bacteria. For these reasons, detergent works just as well as specific floor cleaners.