It's not an equality. The Stolz angle with opening $\alpha > 0$ and radius $r$ is
$$S(\alpha,r) = \{1 - \rho e^{i\varphi} : 0 < \rho < r,\; \lvert\varphi\rvert < \alpha\},$$
a circular sector that for $\alpha < \pi/2$ and small enough $r$ (depending on $\alpha$) is contained in the unit disk. Its boundary consists of two straight line segments, and one circular arc.
For $0 < K < \infty$, the region
$$R(K) = \left\lbrace z \in \mathbb{D} : \frac{\lvert 1-z\rvert}{1-\lvert z\rvert} < K \right\rbrace$$
is bounded by a curve that contains no straight line segment. But as $z$ approaches $1$ on the boundary of $R(K)$, the angle between between the real axis and $1-z$ approaches a limit $< \pi/2$ (namely $\arccos K^{-1}$).
The equivalence of the two conditions is to be understood in the sense that if we consider $R(K,r) = \{z \in R(K) : \lvert 1-z\rvert < r\}$, then for every $K \in (0,\infty)$, there is an $\alpha < \pi/2$ with $R(K,r) \subset S(\alpha,r)$, and for every angle $\alpha \in (0,\pi/2)$, there is a $K < \infty$ with $S(\alpha,r) \subset R(K,r)$ (where $r$ is always supposed small enough that $\overline{S(\alpha,r)}\setminus \{1\}$ is contained in the unit disk). Demonstrations at wolfram.