No, they’re doing it in an effort to paint the parents as “selfish” for depriving the “poor, underfunded” public school system of “much needed funds”.
Such is the narrative they’re using.
All of this personal moral evaluation by the judges has of course nothing to do with the written law which is the ONLY thing they are supposed to apply. Judges don't have to agree with the laws, they're just supposed to uphold them. It should be an impeachable offense for them do do otherwise regardless of their own personal value systems.