Very often in life we have only two options pray or faint, lose heart. Since running away is not an option, we are encouraged by Jesus Himself to chose prayer.
Motivations are complex, but according to Jonathan Edwards there are subordinate ends or motives, chief ends and ultimate ends. Reverence for God is our ultimate end.