The code is really well written - very understandable and modern, kudos on that!

I'm curious, how come the app I just compiled works on macOS?

The framework has a layer of OS abstraction, and uses SDL to create the window and get user inputs