During some part or all of each mission, about half of all scientific and commercial spacecraft will spin. For example, commercial spacecraft are made to spin during the transfer maneuver from low Earth orbit to the mission orbit to obtain gyroscopic stiffness.
Many spacecraft spin continuously in orbit for the same reason.
Other reasons for spinning include controlling the location of liquid propellants within their tanks and distributing solar heat loads. Although spinning has many benefits, it also creates problems because of the unavoidable wobble motion that accompanies spinning. Wobbling makes the spacecraft's flexible components oscillate. The energy dissipated by the internal friction of these components causes the wobbling amplitude to increase continually until, at some point, the attitude control thrusters must be fired to bring the spacecraft's amplitude back to an acceptable level. For modern spacecraft, by far the most massive flexible component and the largest source of energy dissipation is a mobile liquid propellant in a partially filled spinning tank.