FreeDOS, like MSDOS, relies on BIOS calls to control the hardware. Most PCs aren't pure EFI-only and can still boot with some BIOS compatibility, but of course not all of the BIOS implementations are bug-free.
When legacy BIOS compatibility is truly dead, I guess DOS will die with it.