Rather than quote the large amount of text I'll just post a link to it but will emphasis the statement that says
"On Windows 10, virtual memory (or paging file) is an essential component (hidden file) designed to remove and temporarily store less frequently use modified pages allocated in RAM (random-access memory) to the hard drive."
How to change virtual memory size on Windows 10 | Windows Central