Whenever the newer macs sleep, they write the contents of the ram to the hard drive as a safety precaution.
http://www.macworld.com/article/53471/2006/10/sleepmode.html
If you want to disable the feature and have it sleep automatically, type the following in terminal:
sudo pmset -a hibernatemode 0
edit: Also, there will be a sleepimage file somewhere on your computer a little bit larger than the size of your ram. If you disable the safe sleep feature, you might as well delete that image to save a little bit of space. The article above goes into detail on to get rid of it.