What will happen when someone detonates a large nuke in earth, next to data centers?
Which is more likely? Think about it.
A lot of people will die, and the attacked country, or its allies, will shoot nukes back.
A nuke in space would not kill anyone, but the proximate result might be serious economic damage.