Not querying the proof or formality. I include only part of the proof.
The order of the group is a prime number. Call it p. Hence by means of the definition of prime number, $p > 1$. Since the order is prime, the group has > 1 element. It therefore has an element that is not the identity element. Call that element g. Then the group generated by g is $\langle g\rangle$. This is cyclic and has more than 1 element: g itself and the identity. Now $\langle g\rangle$ is a subgroup of G, and by Lagrange's Theorem, $| \langle g\rangle|$ divides $|G|$.
Why should one consider the subgroup generated by $g \neq id$, which is defined as $\langle g\rangle$? Is there an intuition as to why the proof uses this?
Let $G$ be a group and let $a \in G.$ Then $H = \{a^n : n \in \mathbb{Z} \}$ is a subgroup of G and is the smallest subgroup of G that contains a.
The fact that the group has prime order greatly restricts the orders of its subgroups, by Lagrange's theorem. Subgroups can only have order $1$ or order $p$. You want to get your hands on some nontrivial subgroup and study it. So you do the simplest possible thing: pick an element and look at the subgroup it generates.
I suppose the general philosophy is that you can understand a group by understanding its subgroups.