I think that's a rough estimate of how many games you can create using legal moves. That is a very strange estimate given by $20^{80}$ catering to the fact that in each position, there are an average of $20$ moves you can play, and an average chess game lasts for $40$ moves. I found this information in a Numberphile video. I guess, it's called Shanon number.
But, if you want to have an elementary estimate of the number of (legal) board positions, you can go like-
The two kings has to be there. So, place them on any two squares in $\binom{64}2$ ways.
Now, the rest $30$ pieces may or may not be included in $2^{30}$ ways. Arrange them in the other $62$ squares in $\binom {62}{30}$ ways.
So, the total number of ways is $2^{30}\times \binom{64}2\times \binom {62}{30}\approx 9.7\times10^{29}$
Note that this estimate doesn't eliminate the chance of two kings being on adjacent squares which is illegal. Also, this estimate may put two bishops in the same coloured square (which is half illegal since considering pawn promotions make it legal). That reminds us, we also haven't taken pawn promotions into account.