You have to wonder what’s actually going on under the hood when the curve of the hitbox is different to the curve of the window? I’m very curious to understand how Apple have got to this point.

This is relatively common. The mouse interaction code doesn't necessarily look at the visual asset, and in many UI toolkits the ability to have interaction targets located and sized differently from visual features is a feature.