> How could the lower court get this so wrong?
There are no standards for lower court judges. They frequently do things that are grossly illegal.
Here's a US lower court judge who spontaneously ordered that a child's name be changed because of the judge's religious beliefs: https://volokh.com/2013/08/12/judge-orders-that-childs-name-...