Because the constant rotation complicates things a lot.
Specifically talking about the International Space Station, its main mission is a microgravity laboratory. We put it up there so we can learn about microgravity. Why go through all the expense of putting it up there and then spinning it to make gravity when we get it for free down here on the surface?
As for other craft? We have yet to develop manned spacecraft that can do the duration where it would be worth doing. Even the longer Apollo missions were in space for a whopping two weeks and 2/3 of the crew still landed, got out and stretched their legs. It hasn't been worth the engineering hassle to do it.
And it is an engineering hassle, because...
-
The ship has to be designed to handle it. It's under additional stresses, so it's got to be built tougher to handle it. That's added weight, and just typing that sentence made at least three rocket scientists cringe to death.
-
Humans actually aren't great at living in a spin gravity environment. The smaller the radius of the spin, the worse it gets. For one thing, in a centrifuge, there's a pretty steep gradient in centrifugal/centripetal/pedantic force, the farther toward the rim you are the greater the gravity. For very small distances that can be significant enough to cause problems on its own. But also, spinning humans isn't good for their vestibular systems. Each of your inner ears has three semi-circular canals filled with fluid, and little hairs that can detect the movement of that fluid. This allows you to sense rotation around three axes, kind of like a gyroscope sensor. This evolved in an environment that rotates a 1 rotation per day, functionally stationary. Spin a human at several RPM and that constant rotation is enough to start throwing off balance, causing nausea etc. So the bigger the radius of the spin, and the slower, the better. That takes more weight, and there go three more rocket scientists.
-
It makes the spacecraft a pain to handle. You need to be able to orient spacecraft in space to point engines, windows, instruments, docking adapters etc. in various stable directions. A constant roll complicates that. "point in this direction and fire the engines" becomes a pain because, say you're constantly rolling, and you need to change the direction your long axis points. What thrusters do you fire in what combination to steer the ship? Or do you stop the roll, maneuver/use your telescope/dock/whatever, then start rolling again? So now you've got to deal with gravity starting and stopping variously throughout the journey. Or, do you design the ship to have sections that do roll and sections that don't? First, look up "gyroscopic precession" on Wikipedia. Second, wiring, plumbing etc. is a pain in the ass to handle via slip ring, let alone crew access. Third, that adds weight, which...I should probably stop saying that, rocket scientists aren't cheap to train and that's nine we've killed just in this list.
In conclusion, look what you made me do.