This is because games use the y-axis as facing down (for historical reasons leading back to CRT displays, which I explained in another thread). Since the y-axis is down, while in high school math the y-axis is up, this reverses things. For example, if you take sin(90) the result is 1. And since positive y is down in Godot for 2D (and the vast majority of games historically) then it makes sense that the line would point straight down. This is also how it is in HTML/CSS and WebGL, and a bunch of older 2D game engines. It's not a made up thing just for Godot.
It would also be good to not assume everything you learned in high school is correct. Some things are standard, some things are not, and some things are arbitrary and no answer is more correct than another. So if you see something unexpected, just keep reading and adjusting, don't be attached to what you think is the "right way" because many times there is no "right way" or the issue is more complex than you understand.