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 to convey wishes, desires, hypothetical situations, or uncertainties, rather than definitive statements.