This is a common fallacy. Public bathhouses were common in medieval Europe, a legacy of Rome, and by the 18th century, “therapeutic bathing” was a thing.
There was a dip in bathing and bath houses in the 16-17th century due to fear of disease. Lots of aristocrats are well-known for avoiding bathing in that period. Louis XIV is famous for it.