AppleCare isn't a warranty (as the other poster points out).

The standard iPhone warranty disclaims water damage [1] and Apple has been sued in the past for using humidity activated sensors.

[1]: https://support.apple.com/en-us/109350