What is the rhetorical purpose of “yā Allāh” as a cry for help?

Vocative Address: Calling, Rhetorical Purposes, and Declaratives Used as Directives