After a long-time running, your computer may generate lots of junk files, like caches and random access memory (RAM), which makes it harder for operating system to locate needed files. However, rebooting may clear all or a part of such files so as to speed up your computer.