THEY DON’T???
Anyone ever hear of the doctrine of In Loco Parentis?
Since the state is seizing children from the parents, it is obliged to fulfill the necessarily roles which otherwise would be filled by the parent. I’m aware of Tinker, NJ v TLO and WV v Barnett, but these must be seen as limitation to the doctrine, not discarding it!
(In Loco Parentis means, “in the place of a parent,” not “Crazy Parents.”)
Unofficially here in Virginia it could go either way. Let me know when you are in town and I can give you the tour and introduce you to a few.