That legal exemption was made possible by a law passed in 2005 which, at the time, was completely non-controversial. It's only after vaccines have become politicized that it suddenly became problematic for the government to take steps to protect its citizen's lives.