One word: optimization
Apple designs the majority of the hardware. And then they design all of the software with that hardware in mind and the longterm feature and capability goals in turn influence the hardware designs. There are considerable advantages in being able to leverage bespoke design on virtually the entire device down to the last circuit and line of code.
By contrast, and this is by no means an insult, as the entire PC industry runs just fine in the same setup, Android device makers as a whole use an OS that they didn’t design with off the shelf parts that they also didn’t design. And Android itself needs to maintain a wide net for compatibility purposes, all of this leads to flexibility, because it has to, but also inefficiency.
I agree. My AirPods Pro have survived a trip through the washing machine and dryer. So far anyway.