The story
A present subjunctive clause inherited intact from a time when English was freely productive of them. It is semantically equivalent to praise be to God. The zero morph difference from the imperative form allows parsing as a command synchronically.
Etymology from Wiktionary, CC BY-SA 4.0.