So the tech setting of Star Wars does make it science fiction. Space wizards are typical fare for space opera. The Mule in the Foundation stories, Paul in Dune, Gary Mitchell in Star Trek.
Except that Star Wars doesn’t take place in the future, while those other stories do. That’s the main difference.
Time setting is immaterial. Steampunk is science fiction set in the past. And you can have Space Opera set in the past (it has been done many times). Just the typical convention is to set it in our future when we have higher tech (or lower in the case of post apocalyptic SF).