The issue here is that these are parents making decisions for their minor children, not themselves. For example it has been ruled child abuse and illegal for Christian Scientists to deny their minor children life-saving medical treatment.
The other issue here is that herd immunity or lack thereof can put other people's children at risk, not everyone is a responder to vaccination.