There literally is not one single benefit to putting a data center in space. Every single aspect is harder or worse than on Earth, plus brand new challenges that you'd never need to deal with on Earth.
free power from the sun and cooling using the emptiness of space
Lol no and no. Emptiness is insulating, not cooling. That's why you use a vacuum thermos to keep your food hot. If you need to be in sunlight to generate solar power, then cooling is going to be a huge problem. Generating energy is not free, its also a huge problem. The ISS has solar panels the size of half a football field and does not use nearly the power a datacenter uses.