Proof (raising to the power of group order)

By this, $|G| = k\cdot o(g)$ for some $k\in\N$, so $$ g^{|G|} = \big(g^{o(g)}\big)^k = e^k = e. $$