Assange was placed under curfew he had to surrender his passport while awaiting a decision on extradition to Sweden, that process could also have resulted in Sweden deposing him in a UK court.
He however decided to "flee" to a country which would not mind giving the "west" a political middle finger violating his curfew order under UK law (which is why the British government said they will arrest him, it has nothing to do with his alleged offenses in Sweden).
Like it or not Assange exploited his status to get treatment that no regular individual under the sun could get, normal people can't hide in embassies, they can't get the attention of the global media, and they sure most likely will not get a UN panel hearing (which is a Joke since UN working groups are based on the UN regional groups which mean that you'll have bastions of Human Rights from countries like Senegal, Algeria, Georgia, Iran, Pakistan, Benin etc serving on the panel for "Arbitrary Detention").
UN Panels have for quite some time became a mockery and a kangaroo court as the majority of UN members are as far from being democratic and hold actual human rights value as pretty much possible.
Assange could at any point leave the embassy face the charges as far as UK law goes (violation of his court ordered curfew), face the charges as far as Sweden goes and be on his marry way either to prison or freedom.
There was never actual risk of him being extradited to the US it would never work, and the US could've grabbed him at any time when he was roaming the UK or when he goes back to Australia, for the most part with the exception of the current situation he never really attempted to hide in non-extradition countries and considering that both the UK and Australia are part of the 5-eye's a "less than transparent" extradition or rendition from those countries would've been considerably easier than from Sweden and the US had every chance to try that before which they never have attempted.
I know attacking the US is in fashion but people really don't understand just how different it is in places that actually utterly ignore every human right possible, where every institution is built to ignore them and when these rights are not something that is imprinted on the population from birth.
Democracy doesn't come through a piece of paper or a few institutions democracy comes from the spirit of the people, the US is simply an easy target you never hear about the 1000's gitmo's in Indonesia and you only hear about a blogger being put to death in Saudi Arabia when he got some hook up with the US or a European country, you maybe will hear about some reporter Iran has imprisoned for espionage but you don't hear about the 1000's gay men they hang from construction cranes at the town square each year.
People really need to shift their focus on what actually is wrong with this world but as always the tiny smudge of dog shit on the sole of your shoe is an easier target than the huge crap pile down the street.