When they say "PC Speaker" they mean that thing that beeps when your computer fails to boot being used to play music, not normal speakers vs dedicated midi device.
If you've heard music from the Sega Genesis, that's the same Yamaha FM Synthesis technology (details differ, of course).
So, games would often support different audio hardware. Here's a favorite:
https://www.youtube.com/watch?v=1IOL4q5tDDQ (Secret of Monkey Island theme, PC Speaker)
https://www.youtube.com/watch?v=8qpB-HAZsRs (Secret of Monkey Island theme, Adlib/OPL2/FM synthesis, common option for PC sound hardware)
https://www.youtube.com/watch?v=i3dB0qEcG20 (Secret of Monkey Island theme, Roland MT-32/Linear Arithmetic synthesis, premium hardware, likely what the music was originally composed for)