The best explanation for why the subjunctive mood is used is: In some cases, you need to express a wish or desire.
The subjunctive mood is often employed in situations that involve wishes, hypothetical situations, or uncertain outcomes, making this option the most directly related to the primary uses of the subjunctive.