Because Jupiter is so heavy and far away, that the Sun also orbits Jupiter. And Jupiter orbits a point outside of the sun itself. This is called the 'Barycenter'.