OSX is scheduled to run some background tasks at night (3:15am and 5:30am in your computer's time zone), like removing system files that are no longer needed, purging the log files, deleting temp items...
If you turn your computer off at that time, or if it is sleeping, those tasks will not run.
You CAN run these scripts manually... Can't you?
... but who remembers to that anyhoo?