if its at night its to heat /cool power the living quarters or refridgerator unit.
if you pull into a rest stop after driving in high ehat or a mountain. and kill the motor what happens is you trap the oil, and water in the motor in the hottest locations and dont allow it to flow and keep all parts within the workign temperature, instead it has to cool by soaking and drawing the heat though the passageways which doesn't work as well.
a few minutues with the fan blowing, water pump running and oil pump chugging away usually has things cooled down enough.
if its extremely cold most never shut the diesels off as they may not start, but i doubt you will be RVing in -20*F or colder temps