Most of the processes of a tree are influenced by the available sugars, which originate in the leaves and other green plant parts.
The sugars are moved through the phloem, which can be compared to a sponge.
If water drips on one end of a sponge and the other end is in the hot dry sun, the water will move toward the dry end. If there isn't enough water, the warm end will dry out.
The same thing happens in a tree. If there is an injury, sugars will be used for the repair processes. If the sugars in the immediate area are used up, more will migrate from other areas of the tree. If the tree is under stress and low on sugars to begin with, the repair and defense processes can't happen.
If there are leaves near the injury, there is a good source of photosynthates, which fuel the repairs.