The state has an interest in keeping people alive, and in having people not make decisions which will negatively impact those around them. Someone not taking simple precautions like wearing a mask or getting vaccinated and taking a bed in a full hospital is a legitimate state concern – but a time-limited one, too, which is only compelling during a crisis.
The state has an interest in forcing people to make the Right Decisions. Thus... who cares about free speech anyway, when it can lead to the Wrong Decisions?
But yes, that is one of many Legitimate State Concerns.