Org has facilities for building context sensitive commands. Authors of Org add-ons can tap into this functionality.
Some Org commands change depending on the context. The most important example of this behavior is the C-c C-c (see The very busy C-c C-c key). Other examples are M-cursor and M-S-cursor.
These context sensitive commands work by providing a function that detects special context for that add-on and executes functionality appropriate for that context.