Weeeell, maybe because Sweden is a democracy and has no "authorities" that can guarantee the outcome of hypothetical future legal proceedings.
Also, note that Assange was obviously in Sweden when the rape allegedly happened, and only became conveniently afraid of extraditiom to US after those allegations surfaced.