Why is space so cold if the sun is so hot?

We live in a universe of extremes.