Thing is if $p$ and $p + 2$ are both primes greater than $3$ then neither $2$ nor $3$ divdide either of them. And so you have to prove that $2$ and $3$ must both divide $p+1$.
$2\not\mid p \implies p\not \equiv 0\pmod 2$ but we can only have either $p \equiv 0\pmod 2$ or $p \equiv 1 \pmod 2$. As one is impossible the other must be true. So $p \equiv 1 \pmod 0$. Therefore $p + 1 \equiv 1+1 \equiv 2 \equiv 0 \pmod 7 \implies 2\mid p+1$.
(In other words, if $p$ is prime larger than two it is odd so $p + 1$ is even. But this explains why such basic intuitive logic of "if $n$ is odd then $n+1$ is even" is actually valid.)
Sam thing for $3$. $p$ is prime so $3\not \mid p$ so $p\not \equiv 0 \pmod 3$. But $p\equiv 0,1,2\pmod 3$ are the only three options. So either $p\equiv 1 \pmod 3$ or $p\equiv 2\pmod 3$. But if $p \equiv 1\pmod 3$ then $p+2 \equiv 1+2\equiv 3\equiv 0\pmod 3$. But we were told $p+2$ was prime too. So $p\equiv 1 \pmod 3$ is a contradiction. So that leaves $p\equiv 2\pmod 3$ is the only option. So $p+1 \equiv 3\equiv 0\pmod 3$ and $3|p+1$.
So $2|p+1$ and $3|p+1$ so $6|p+1$.
=====
Is it necessary to remember that every prime can be written as 6n+1 or 6n+5 here?
Well you could.
If $p=6n+5$ then $p+1 = 6n+6=6(n+1)$. And if $p=6n+1$ then $p+2 = 6n+3 \ne 6n \pm 1$ so that's impossible. We must have $p=6n+5$ and $p+n = 6n+7 = 6(n+1) + 1$. And therefore $p+1 = 6(n+1)$.
....
But I think it's more fundamental to think $6=2\cdot 3$ so proving divisibility (or lack thereof) by $6$ is to prove divisiblity by $2$ and $3$.
I completely forgot and would never remember that primes must be of the form $6n+ 1, 5$ unless I realize a prime must be of the case $kn \pm w$ so that $w\le \frac k2$ is relatively prime to $k$. For $k=6$ we only have $w=1$ for $\gcd(w,6)=1$ as $2,3|6$. So if $p$ is rime it must be $6n\pm 1$.