You're allowed to choose not to vaccinate. You just have to be homeschooled in that case. Kind of like things that aren't required of colleges, just required to receive federal funding.
The government has a vested interest in protecting the kids that they're making come together in massive groups for school. Thus it makes sense to require extra precautions.