MIDI file playback support in macOS was removed in the 64-bit only transition in Catalina (since it relied on legacy QuickTime). If you opt to install Apple Garageband (free, preinstalled on new Macs I think) then that can play (and edit) them.
The OS still has a software synth and a high-level API for playing them, there's just no bundled app to interface with it.
The OS still has a software synth and a high-level API for playing them, there's just no bundled app to interface with it.