Do you understand what happens in a court case?
One side puts forward an argument, and the other side puts forward their argument, and a judge decides which is true and then applies the law.
Here the judge decided that he was at risk of death if he went to a US prison, the US was unable to answer that point, and the judge then looks at law - ECHR article 2 - to decide whether to send him or not.
The judge seems pretty clear that Assange should be in jail. Just not in an inhumane US jail.
Your comment BTW is a great example of how toxic these convos can be. I loathe Assange and I don't care if he rots in prison. You've assumed that I think he should be walking free.