It's (partially) up to the government to protect other people's children from your recklessness. Saying that not vaccinating is a choice is like saying that driving drunk is a choice. It's literally true, but the government has a valid interest in curbing both behaviors.