You are not recording audio when you lay down the MIDI. In the case of an external synth, the MIDI triggers the keyboard or module to play the sound which then comes back into your audio interface as audio to be recorded. In the case of a soft synth, it is similar, except the MIDI is triggering the software in your computer to generate the sound on the fly.
In either case, you can make a CD or MP3 without recording the audio, freezing, or bouncing, if you check the option to Include Live Input when you are exporting the audio. I like to record all the audio at some point, though, to relieve CPU strain but mainly to ensure I still have the music if the hardware or software synth breaks.