to require buildings meet minimum standards for construction, fire safety, electrical wiring, plumbing, etc.?
Each of these examples has the overriding protection of the public good. Preventing the introduction of a known cause of diseases into public places and workplaces is also for the protection of the public good. Rather than an erosion of freedoms, this is actually a restoration of a protecting a basic human necessity, the right to breathe clean air.