most importantly a RAW file hasn't been demosaiced, ie instead of pixels of colors, it's a grid of scalar sensor measurements that, depending on the pattern (eg Bayer) each represent either red, green or blue intensity. since we only know one for each position in the image, the other two have to be interpolated (which is demosaicing)