Because he’s trying to calculate an angle, not the length of a side.
?
If you are traveling along 20mm and going up 3mm, why not just use Pythagoras rule? a squared + b squared = c squared.