https://www.ncsl.org/research/health/state-quarantine-and-isolation-statutes.aspx
There are laws. We just haven’t had to actually use them in 2 or 3 generations.
Do we really expect people to modify their personal behavior so as to prevent the spread of a disease?