Let me try to set the stage for you ...
When you first switch-on your machine, the circuitry issues a
Hardware Reset signal to the CPU(s), thereby placing all of them in "a known state." Every CPU/Core other than the first promptly freezes: the first one proceeds. This CPU now executes "various bits of initial business provided by the hardware manufacturer" – diagnostics and so forth – before finally settling down to the primary task at hand:
"booting the system!"
In the early days, we referred-to this initial programming as "the BIOS" (Built-In Operating System), but that term's getting a little bit
tired nowadays. These days we deal with "UEFI," which is more-or-less a defense against someone stuffing a USB-stick into a computer and thus successfully booting the system from that "stick," even though we didn't
want him to be able to do that.

"But, I digress ..." This layer of software will eventually find and select a "boot loader," and pass control to it.
If all goes well, Grub
(being a "boot loader") will get control, and its primary duty is to give you a choice of
which operating system you would now like to start. Grub's a pretty smart cookie: "he knows about file systems," and therefore he's able to find the
/boot directory on a drive and to read and understand the files that are to be found in it. (Grub also has a pretty-serviceable set of "console commands" for your entertainment.)
So, after dutifully reading its configuration files. Grub presents you with a menu
(and, after a specified number of seconds, moves on to some default choice). It then carries out the specified sequence of low-level commands that
(the config-file says ...) are needed to select and launch
your selected operating system. All of these steps are spelled-out in "ordinary files."
As others have already stated, Grub does not have to bear the
entire responsibility. In the case of
"The Operating System That Must Not Be Named™" ...

... it simply hands-over the keys to
another "boot loader." Problem solved.
In either case: "
(whatever) operating system's so-called
'trampoline' code is presented with exactly the initial environment that it has been programmed to expect." And, "it takes it from here."
(Cowabunga!)
- - -
The really nice thing about Grub is that they really did a good job of it: Grub is a
thorough and very well thought-out solution to "the overall booting problem, in all of its respects." Grub provides a very comprehensive set of tools
(to maybe-diagnose boot-time issues), and, unlike its predecessor LILO, won't leave you in the lurch if you
(oopsie!) "forgot to do something" before shutting down.
Without in any way "dissing" the LILO team, Grub
(IMHO) really
is significantly better. It's a
sophisticated tool that is "there to help you, if it can," in exactly those situations where ...
(and you know exactly what I mean if you've already been there) ... "sophisticated tools" are needed!
Definitely make it your business – very soon – to
"get to know Grub." (And: LILO.)