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 primarily used to express wishes, desires, emotions, demands, or hypothetical situations, rather than definitive statements or questions.