I suspect they also need oxygen saturation (introduced in the Apple Watch Series 6 in 2020) in order to make their overall sleep apnea detection algorithm work. Given that it only works with the Series 9 or above, it's possible they're also using the the temperature sensor as another input into their algorithm.