I've been wondering this for a while and it may be obvious but I can't think of how it works. From my understanding, to calculate the sine you'd do opposite side length/hypotenuse side length, but the calculator doesn't know these side lengths.
This may sound really dumb to you guys but I'm kinda new to trigonometry so I'd appreciate any help I can get with this.
Thank you!
One marvelous idea you'll no doubt encounter later on in your studies of math is that of a series approximation.
Long story short, a series approximation is a way of representing a more complicated function, like $f(x)=\sin(x)$, as an infinitely long polynomial. What your calculator is doing when you try to calculate the sine of an angle is taking the first few (loosely speaking) terms of that series and just approximating the value you're looking for. But since it's a calculator, it can approximate the value you're looking for very, very well.
For example, the first few terms of the Taylor series (one particular kind of series approximation) of $\sin(x)$ are: $$\sin(x)=x-\frac{x^3}{3\cdot2\cdot1}+\frac{x^5}{5\cdot4\cdot3\cdot2\cdot1}$$ Your calculator knows more terms than that, but it's a good approximation of the approximation. Let's say you wanted to calculate the value of $\sin(\pi/2)$ (have you learned about radians yet?). The exact value is $1$, but that very rough approximation I gave would return $1.0045$, which is already pretty close to the exact value.