Let's look at $\Bbb Q(\sqrt2,\sqrt3)$. This is the smallest field containing $\sqrt2$, $\sqrt3$, and the rationals
It's things of the form $a+b\sqrt2+c\sqrt3+d\sqrt6$
Every element can be represented by four rationals, so it has dimension 4… over $\Bbb Q$.
But! We can also write its elements in this form:
$(a+b\sqrt2)+(c+d\sqrt2)\sqrt3$
Every element can be represented by two things in $\Bbb Q(\sqrt2)$.
So what this means is, $\Bbb Q(\sqrt2,\sqrt3)$ has dimension 2 over $\Bbb Q(\sqrt2)$.
This is the first time I talked about dimension over something other than $\Bbb Q$.
Some notation: write $[\Bbb Q(\sqrt2,\sqrt3):\Bbb Q(\sqrt2)]$ to mean the dimension of $\Bbb Q(\sqrt2,\sqrt3)$ over $\Bbb Q(\sqrt2)$.
And in general, $[G:H]$ for the dimension of $G$ over $H$.
Then:$$[\Bbb Q(\sqrt2,\sqrt3)]=[\Bbb Q(\sqrt2,\sqrt3):\Bbb Q(\sqrt2)]\cdot[\Bbb Q(\sqrt2):\Bbb Q]$$
In general, $[G:K]=[G:H][H:K]$, where $G,H,$ and $K$ are fields
Now we're getting pretty deep into Galois theory
But I want to tell you this to tell you where the "powers of 2" come from
Think of a ruler and compass construction. Think of the x- and y-coordinates of those points, and think of the field generated by all of those coordinates
Every time you draw a new line or circle, you construct new points (the intersections with the lines and circles you've previously drawn)
So you can consider $\Bbb Q($all the (coordinates of the) points you've constructed$)$
and we want to know its dimension over $\Bbb Q$
It's simpler to ask for its dimension over $\Bbb Q($all the points you constructed until a step ago$)$
(until you drew that last line or circle)
Let $S_n$ be all the (coordinates of the) points you created up to and including the $n$th step of the construction.
Then it turns out the field $\Bbb Q(S_n)$ either equals $\Bbb Q(S_{n-1})$, or it has dimension $2$ over $\Bbb Q(S_{n-1})$
$[\Bbb Q(S_n):\Bbb Q(S_{n-1})]=1\text{ or }2$
(The main reason is, when you intersect a circle with a line or a circle, to get the coordinates of the new points, you usually have to solve a quadratic equation)
So, assuming we accept that, then$$[\Bbb Q(S_n):\Bbb Q]=[\Bbb Q(S_n):\Bbb Q(S_{n-1}][\Bbb Q(S_{n-1}):\Bbb Q(S_{n-2})]\dotsb[\Bbb Q(S_1):\Bbb Q]$$is a product of a bunch of $1$s and $2$s, so it's a power of 2
If you could construct $\cos(20^\circ)$, then $\Bbb Q(S_n)$ would contain $\Bbb Q(\cos(20^\circ)$, so we could ask what $[\Bbb Q(S_n):\Bbb Q(\cos(20^\circ)]$ is.
But$$[\Bbb Q(S_n):\Bbb Q]=[\Bbb Q(S_n):\Bbb Q(\cos(20^\circ)][\Bbb Q(\cos(20^\circ):\Bbb Q]$$
$$\text{power of 2}=[\Bbb Q(S_n):\Bbb Q(\cos(20^\circ)]\cdot 3$$
$3$ isn't the factor of any power of 2
So contradiction. The conclusion is that $\Bbb Q(\cos(20^\circ))$ isn't a subfield of $\Bbb Q(S_n)$ (where $S_n$ is the numbers we constructed with a straightedge and compass), so $\cos(20^\circ)$ isn't in $S_n$, so we can't construct $\cos(20^\circ)$.