I remember x86 real mode back in the day. Pretty hideous and hacky compared to what we have now.
x86 processors still boot into real mode…
"UEFI firmware performs those same steps, but also prepares a protected mode environment with flat segmentation and for x86-64 CPUs, a long mode environment with identity-mapped paging. The A20 gate is enabled as well."