The statement you write is either wrong, or uses $v$ for two different vectors, which is probably what is confusing you. Here's what it should say:
Let $\lambda$ be an eigenvalue of $A$. Then let $v \ne 0$ be some corresponding eigenvector.
We have that
$$
Av = \lambda v
$$
Now consider the nonzero vector $w = P^{-1} v$.
Notice that
$$
(P^{-1} A P) w
= P^{-1} A P P^{-1} v
= P^{-1} A v = P^{-1} (\lambda v)
= \lambda (P^{-1} v) = \lambda w.
$$
Therefore, $\lambda$ is an eigenvalue of $P^{-1} A P$ as well (with an example eigenvector given by $w$).
This works for any $P$,
so if $A$ and $B$ are similar,
then every eigenvalue of $A$ is an eigenvalue of $B$,
and every eigenvalue of $B$ is an eigenvalue of $A$.
Therefore, $A$ and $B$ have the same eigenvalues.