34/30 pants for me, but yeah, I think torso size is a big part of it. It also comes out in bicycle sizing.
Bikes are sized based on the horizontal length of the frame, via measurements "effective top tube length" or the similar "reach", with almost everything else being adjustable. So long as that length is good for your torso length, the other parts can be adjusted or swapped to dial in the fit. (This is why bicycle sizes tend to indicate a height range.)
The whole long torso length thing means that I tend to ride a larger frame with the seat adjusted shorter than someone with a shorter torso would. Thus, I generally ride a large from most companies, but have to be careful that the seat can be adjusted in the right position. Similar height buddies will often ride medium frames with the seat much higher. Their longer legs exacerbate the need for a shorter (length) frame because moving the seat up moves the hips rearward on the bike, making something even shorter needed. For a lot of the typically-athletic-build women (long legs) this can make it a real problem for them to find bikes as it's often difficult to have the seat high enough for their legs but a short enough reach.
(That old thing about sizing bikes based on being able to stand over them is completely wrong. Bike sizing needs to be done based on riding the bike, not standing over it.)