Lets consider two views of zeta functions of curves.
For the following, let $\mathbb{F}_p$ be the field with $p$ elements where $p$ is prime, and let $\overline{\mathbb{F}_p}$ be the algebraic closure of $\mathbb{F}_p$. Let $X$ be a smooth curve over $\text{Spec}(\mathbb{F}_p)$.
View 1: Using a Weil cohomology theory, obtain a chain complex $C^*$. Applying the cohomology construction to the frobenius map $F : X \rightarrow X$, we get a map $f : C^* \rightarrow C^*$. Chain complexes do not have determinant in the ordinary sense, but there is a unique generalization, which is $f_* \mapsto \text{Det}(f_*) := \prod_{i = 0}^n \text{det}(f_n)^{(-1)^{i+1}}$ (this only works for certain complexes). We consider the generalized characteristic polynomial. $$ \text{Det}(1 - t f_*) = \prod_{i = 1}^n \text{det}(1 - ft)^{-1^{i+1}}$$ A Poincare duality for the étale cohomology leads quickly to a functional equation. Viewing the zeta function this way seems to accord well with the proofs of the weil conjectures, which are higher analogues of a simple theorem on finite dimensional vector spaces: the lefshetz fixed point theorem.
View 2: The global zeta function $Z(f, \psi)$ is $$ \int_{\mathbb{I}} f(x) \psi(x) d \mu^\times (x)$$ This view is accompanied by several variants, each expressing the L-function as the Fourier transform of some character.
In this view (the view of class field theory) there is a correspondence between characters on the absolute Galois group $\pi_1(\mathbb{Q})$ and characters on $\mathbb{A}^\times / \mathbb{Q}^\times$. This view is explained here and here.
Both of these views have toy versions in finite dimensional vector spaces using sets instead of schemes. But it is not clear from the second view that zeta functions should arise as characteristic polynomials.
Can anyone give an explanation of why we should expect the (higher analogue of the) characteristic polynomial to be a character? Is there a toy-model where the two views can be unified here? I am searching for some relatively simple observations about the relationships between characteristic polynomials and characters to the effect that these views would seem like the higher analogue of a natural observation about char polys on finite dimensional vector spaces.