Europe is not less racist than the US. However, Europeans are much less used to reflecting on and taking about racism in their own countries than Americans are.
That reluctance to talk about race is exacerbated by the fact that, in many European counties (Sweden being one of them), it is either difficult or impossible to legally collect meaningful data about race, making it impossible to actually report on objective racial disparities and issues.
> The real question is why Europe has to deal with it when it was the USA which started the wars.
I see Europeans express sentiments like this quite often, and it's quite amusing. Racism isn't something foreign to Europe - Europe is literally the birthplace of white supremacist ideology, and racism has been ingrained in European society for centuries. It's quite ludicrous to pretend that it somehow evaporated overnight without cause, and even more absurd to make that assertion when there's copious evidence of direct and overt racism in across Europe literally every day.