DNA is physically attached to the inside of the nuclear envelope so it can't leave (there are a few other reasons, but that's one). So it is necessary to copy it into something that can move out into the cytoplasm to get it to the ribosome (the site of translation).