It's just an example. There are lots more doctors who will give exemptions just to make parents happy. There is clearly friction between parents/doctors/state over this policy.
It's an example that you provided a source that says the exact opposite of your example. In California there is a new law designed to specifically combat your example and it's been quite effective.