Earlier quoted context omitted.
Did you read the spec? This is why the scanning happens on the device.
I don't recall them explicitly saying anything was e2ee except imeessage which is not relevant for this discussion.
[1] https://www.apple.com/child-safety/pdf/CSAM_Detection_Techni...