differences between headless and rendering with GUI


I was wondering why headless rendering on my node (4x 1080Ti on a windows server 2012) is so much faster then rendering with GUI.
with gui it took 23. minutes, headless only 15 seconds

Is it because of using a server version of the OS?