This is possible because a portion of BIOS is located on the firmware of each disk controller, accessible with standardized API. In particular, you can read any logical sector. The BIOS-level API is based on the interrupt 0x13:
http://en.wikipedia.org/wiki/INT_13H[
^].
In fact, this is a pretty complex procedure. First, BIOS needs to auto-detect the drives, consult the boot order record in the BIOS setup data, for the selected drive (optical drive, USB drive, etc.), read partition information, select a partition, and only then access a correct sector and try to load the MRB, detect if the record is a valid MRB and report if it is not found, retry it all with the next drive from the boot order sequence, repeat until successful boot of failure.
See also:
http://en.wikipedia.org/wiki/Master_boot_record[
^],
http://en.wikipedia.org/wiki/BIOS_Boot_partition[
^].
—SA