The best explanation for why the subjunctive mood is used is:
In some cases, you need to express a wish or desire.
While the subjunctive mood can also convey uncertainty or requests, the expression of wishes and desires is one of its primary functions.