Let $X \subset \mathbb{P}^n_k$ be a normal projective subscheme over $k$ of dimension $n$. The dualizing sheaf is in context of Serre duality a pair $(\omega_X,t)$ (which exists in that case) consisting of a coherent sheaf $\omega_X$ and a linear functional $t: H^n(X,\omega_X) \to k$ giving rise to natural isomorphism $\operatorname{Hom}_X(\mathcal{F}, \omega_X) \simeq \operatorname{H}^n(X, \mathcal{F})^*$ for each coherent sheaf $\mathcal{F} $ via naturality & composition. Obviously the pair is unique up to isomorphism by usual argument as characterized by universal property.
This map $t$ is also called trace, and is sometimes denoted by an integral symbol $\int$. This naturally leads me to blackboxophobic
Question: What is the original reason - presumably having it's roots in differential geometry - to call $t$ a "trace" and label it by an integral symbol?
Asking plainly: If we go back to classical theory of vector bundles over projective submanifolds $X \subset \mathbb{P}^n_k$, which integral is the "analogon or precursor" of this map $t$ in algebraic context of Serre duality "legitlimating" to call $t$ trace and labeling it by an integral symbol?
Ie, is $t$ adapted literally from certain integral resp. trace map (term "trace" there should be synonymously to a contraction in diff geometric sense).
Would be completely happy to see it elaborated on "baby example" $X=\mathbb{P}^n$ with $\omega_X= \wedge^n \Omega_X$.
Motivation: Intuition
The confusing part is the following: in classical setting there exist a (up to scalar multiples canonical) volume form $vol$, a (for nice enough manifolds) which can be considered as a nowhere vanishing section of bundle $\wedge^n \Omega_X$ generating the $k$-space of global sections of the latter bundle. The algebro-geometric pendant to this space is surely $H^0(X, \wedge^n \Omega_X)$.
At first glance it look rather natural as one might think that the motivation for labeling the algebraic trace map with integral symbol comes from that the classical pendant is given by integrating the volume form of the mfd (resp it's multiples).
But there is a problem so far I can see (and don't know how to satisfactorily overcome, more precisely a degree shifting issue:
The volume form $vol$ mentioned above lives in $H^0(X, \wedge^n \Omega_X)$, in contrast the trace map "integrates" the classes living in $H^n(X, \wedge^n \Omega_X)$.
Can this discrepancy be somehow naturally resolved in order to take integration of volume form (resp it's multiples) as legitime precursor of the algebraic trace map? (if it really the case. Maybe it has a different origin; the one with $vol$ was just the only one came into my mind pondering about this question).
Besides, is there any (historic) background to call it "trace"?