I think you are getting this very good. The bottom section, your discription, is only in the macro. It is not in a macro module. Therefore that code is executed when the macro is first read, ie when KM starts. The modules only get executed when they are called. They can be called by menu, accel keys, button press, or other modules.
Forum:
General