This is true in the U.S. as well [0]. Some states allow for religious, philosophical, or medical exemptions; these exceptions are similar to the systems implemented in the Netherlands (religious [1]), Australia (philosophical [2]) or Germany (medical [1]).
[0]: https://en.wikipedia.org/wiki/Vaccination_policy_in_the_Unit...
[1]: https://link.springer.com/content/pdf/10.1057/s41271-019-001...
[2]: https://www.sabin.org/sites/sabin.org/files/restricted/Salmo...