TITLE: Why is Langlands functoriality usually related with period integral in a third group?
QUESTION [10 upvotes]: In the introduction of "PERIODS OF AUTOMORPHIC FORMS "by 
HERVE JACQUET, EREZ LAPID, and JONATHAN ROGAWSKI, they said
"In many cases, it should be possible to characterize the $H$-distinguished cuspidal representations as images with respect to a functorial transfer to $G$ from a third group $G'$"
here $G$ is a reductive group over a number field $F$ , and $H \subseteq G$ is a subgroup obtained as the fixed point set of an involution $\theta$.
The case $(GL_n(E),GL_n(F))$ and $(GL_n(E),U_n(F))$ is well-studied by Jacquet, here $E/F$ is a quadratic extension. For general Galois model, there is a conjecture by Prasad (see https://arxiv.org/abs/1512.04347). 
There are examples beyond the involution case, e.g the nonvanishing of Shalika period integrals is characterized in terms of functorial transfers from $GSpin(2n + 1)$.
There are also local analogues for the story. The question is (at least over $p-$adic field)：
Why is Langlands functoriality usually related with period integral in a third group? What do we know beyond Galois case? What's the relation with relative Langlands program by Sakellaridis and Venkatesh?
Toy model: an irreducible cuspidal representation of $GL_n(\mathbb F_{q^2})$ is distinguished by $U_n(\mathbb F_q)$ iff it comes from $GL_n(\mathbb F_q)$ by Shintani lifting.

REPLY [7 votes]: A lot is known--too much to try to summarize--and I think this philosophy came about after seeing numerous examples, beginning with Harder-Langlands-Rapoport (base change for GL(2)), and thinking about the connection with L-functions.
Namely, in many instances one knows that images of functorial lifts can be detected by poles or nonvanishing of certain $L$-functions at special values.  For instance, often images of functorial lifts can be detected via factorizations of $L$-functions for functorial lifts---e.g., to relate to Will Sawin's comment for a lift from GL(n) to GL(n) $\times$ GL(n), the zeta function divides $L(s, \pi \times \check \pi)$ so the latter has a pole at $s=1$.  In addition, theta lifts are often nonvanishing only when a certain $L$-value is non-zero.
Now one often has integral representations for $L$-functions, and one can often detect poles/nonvanishing of $L$-functions at special values via period integrals.  In addition, one can often compare periods on different groups, as in much of Jacquet's work and the Gan-Gross-Prasad conjectures.  Sakellaridis-Venkatesh is an attempt to build a general theory for how periods are related on different groups.  They primarily study the local question, but do make some global conjectures at the end as well. 
Some places you can look for instances of what is known: surveys/papers on integral representations, poles of $L$-functions, theta correspondence and descent; Jacquet's papers; introduction to Sakellaridis-Venkatesh, ...