If dreams only were the result of some cleanup process (i.e. just arbitrary neurons firing), I imagine they would be a lot less coherent and all events would be (stochastically) independent. While dreams usually don't much make a huge lot of sense, they are sometimes quite realistic and "past" events seem to influence "later" events.