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, hypotheticals, and situations that are not certain or reflective of reality.