It has always surprised me that so many judges in the USA are appointed politically.
In the UK, our judges are chosen by panels of judges. This results in a judiciary which is legally and socially conservative, but politically pretty neutral. Social conservatism in the judiciary can be modified in action by new laws, such as gay marriage.
It’s also clear that Trump’s frantic quest to stuff the US judiciary with conservatives is causing the appointment of a lot of people who don’t know as much actual law as they should.