The function of hypochlorous acid is bleaching and sterilization.
Sodium hypochlorite can sterilize because it is bleached with hydrolyzable hypochlorous acid.
It is equal to the strong oxidation induced by bactericide, which can oxidize and kill germs and so on.