The Declaration of Independence states the American belief that all humans are endowed by their creator with certain unalienable rights and that among these are life, liberty and the pursuit of happiness. Note that life is listed first.
Our liberties are not absolute. They are limited. As an example, though we have freedom of speech and press, we do not have the freedom to slander and libel others. Similarly, SCOTUS has ruled that prohibitions against yelling "Fire" as a prank in crowded public places such as theaters do not violate freedom of speech because they serve the common interest of public safety.
Your rights to life and liberty end where another's right to life and liberty begin. Liberty is not absolute. Neither is the government's ability to limit it as you accurately point out.
To address the OP's comment concern, wearing a mask is a nuisance which (together with social distance) promotes the common interest of public health. To require masks to be worn is minimally invasive and does not violate an essential liberty. While some may insist that this requirement is inky the inital incursion of a more robust assault on our liberties, this is a slippery slope argument. While in many cases "slippery slopes" do exist, in this case there is no evidence that it is anything other than the traditional fallacy.
Remain vigilant of your liberties and the government's attempts to limit them, but wear a mask.