Sweden is a huge country with very low population density and one of its neighbors is Russia, a formidable military power. This means it is very dependent on the US for its security, and more likely to be vulnerable to explicit or implicit pressure from the US than an island nation of 60 million people that is also a nuclear power.
I'm convinced this is also the case with Australia, which is why they're so unwilling to stand up for Assange.