Radiation cooling means the energy is radiated away as light, which works in space.
A vacuum only stops conduction - heat transmitted through matter. It doesn't stop radiation.