Most planets orbit their star in the same direction the star spins. That’s just how planetary systems are supposed to work.