**A spirit.** A general approach that may interest you is the following: counting laws can be obtained by studying suitable generating functions, *via* Tauberian arguments: the rightmost pole (resp. residue) of the generating function gives the growth order (resp. leading constant) in the counting law.

In the case of Schanuel's theorem, the generating function is in fact linked to the Dedekind zeta function $\zeta_K$, showing how the residue of $\zeta_K$ naturally appears as part of the main term. With this point of view, it is not a surprise.

Let me give some details and references below.

**Counting laws from zeta functions.** In many counting problems, we introduce a generating function (Fourier series, Dirichlet series, zeta functions, etc.) as an analytic tool to study the underlying combinatorics. In the realm of counting rational points on algebraic varieties $V$ over a number field $K$, a suitable such generating function is the *height zeta function* defined by
$$Z_V(s) := \sum_{x \in V(K)} h(x)^{-s}.$$
For $s$ large enough, this series is convergent (as a consequence for instance of Northcott's theorem, stating that the number of rational points of bounded height grows polynomially).

The spirit now is the same as for the prime number theorem: obtain enough analytic properties of $Z_V(s)$. Suppose you are able to prove that $Z_V(s)$ has meromorphic continuation to a certain right half-plane, say with a single pole at $s=a$ and then remains holomorphic up to $\Re(s)>a-\delta$ for a certain $\delta>0$. Then, the (Wiener-Ikehara) Tauberian theorem gives you straight away the analogue of Schanuel's theorem for the variety $V$:
$$N_V(X) := \# \{x \in V(K) \ : \ h(x) \leq X\} = \underset{s=a}{\rm Res} \ Z_V(s) \cdot X^a + O(X^{a-\delta}).$$

You can of course obtain finer asymptotic information on $N_V(X)$ with finer analytic information on $Z_V(s)$ (and may pick extra $\log(X)$ factors in case there is a vertical growth).

**The case of Schanuel's theorem.** Now, how do we study $Z_V(s)$? This is done in a great paper of Franke-Manin-Tschinkel (1989): they relate $Z_V(s)$ to an explicit Eisenstein series (see their Proposition 3), hence deducing its nice analytic properties, and then they evaluate precisely the residue to obtain the leading coefficient (see their equation (2.12)). Without much surprise if you are acquainted with Eisenstein series: it is expressed in terms of the Dedekind zeta function. Hence, the leading coefficient in Schanuel's law is essentially the residue at $s=1$ of $\zeta_K$.

A nice introduction to these geometric methods can be found for instance in the short and recent lecture notes by Chambert-Loir.

**Another expression for the constant.** Note that you may also be willing to forget about the expressions in terms of class numbers and Dedekind zeta functions (which bears a lot of arithmetics) and look for a more geometric expression. This is provided for instance in Chambert-Loir-Tschinkel where the leading constant is rephrased essentially as a height zeta integral (see their Theorem 1.3.1, I try to be consistent with my notations above)
$$\int_{V(\mathbb{A}_K)} h(x)^{-a} dx$$
for a certain suitably normalized Tamagawa measure $dx$. Recall that $a$ is the growth order in the counting law.

**A glimpse to the second question.** What I said above already gives you a whole bunch of analogous phenomena: zeta functions are generating functions, hence their residues naturally appear in counting laws for the underlying objects.

An example with a pretty different flavor is the following: you can consider the analogous zeta functions (of the conductor) for automorphic forms, use to trace formulas to study it and in particular see that the identity term (which is the most significant one) can be expressed by the Dedekind zeta function of the underlying field. Hence, you get counting (Weyl) laws displaying a leading constant expressed with the same residue $\zeta_K^\star(1)$.

Hope it helps!