"The earliest recorded evidence of the production of soap-like materials dates back to around 2800 BC in ancient Babylon." [1] Soap is not a modern invention and its usefulness in cleaning was recognized way before modern knowledge about diseases.
And arguably, soaps available in shops are getting worse with every iteration. Enter a big store in most of the developed world, and you can hardly find a regular soap bar anymore (only liquids, "hydrating bars", etc.). Craft markets still have them luckily.
With liquid soap I always feel like I can never fully remove it from my skin, no matter how long I rinse it with water afterwards. With a soap bar my hands just feel cleaner, less greasy. They also last longer and are easier to store/transport, need less packaging, etc. Also basic soap bars have two or three main ingredients whose effects are fully understood and have been used for centuries if not millenia. The list of components of the latest liquid soaps is far more obscure, no-one knows their long-term effects on us and the environment.
I hope you see you’re making my point. Soap without the hygiene practices isn’t soap with hygiene practices. And those practices are predicated on a theory of germs
[1] https://en.wikipedia.org/wiki/Soap#Ancient_Middle_East