Is fairly common that, if you as an individual are doing something that poses a risk to other people, society will step in to attempt to change your behavior. You can argue that it is “wrong” for society to do that, of course.
It puzzles me that nearly 4 years after the start of the pandemic, this naive libertarian thought fragment is still so widely used. As the saying goes, “Your right to swing your arms ends just where the other man’s nose begins”.