Many things are antibacterial and work fine on your skin, but not in your body. Drinking hydrogen peroxide for example would be at best pointless and at worst harmful.
Bleach is a highly effective antibacterial substance, it’s also toxic but that’s not a major problem for floors. Hell, bacteria have had billions of years to adapt to sunlight, it still kills them fairly quickly.