It presumably is because of this original meaning (the verb “to pray”) that “prego” has become the instant reply to “grazie”, which means “thanks”.