What makes certain workers, school board members or teachers, doctors or even complete strangers think they can decide what children believe or are taught and actually think it’s ok to instill said beliefs or teachings while undermining or completely disregarding the children’s parents beliefs?

Because some parents teach things that harm their children or encourage their children to harm others. E.g., vaccine myths, transphobia, anti-evolution myths, etc.