The ESP contains the boot loader for all installed operating systems, the device drivers and system programs that run before the operating system is started.
This is one of the big advantages of UEFI over BIOS: Every operating system can install the files it needs into the ESP.