r.e.m. stands for rapid-eye-movement, this is when dreams occur
this website likens dreams to the digestive system
the digestive system sorts through the food and uses those foods most suitable to keep the body working
likewise, a dream is the mind digesting the experiences of the day before and lets you know if they were good or bad for you… see q.o.d.