When your iPhone gets wet, the water can damage the internal components, like the battery and the charging port. It's like a flood inside your phone, and it can cause all sorts of problems, including corrosion and short circuits. But why won't it charge, you ask?
Well, it's because the charging port is designed to detect when it's wet, and it will shut down to prevent any further damage. It's like your iPhone is saying, "Hey, I'm wet, and I don't want to risk getting fried!" And that's why you might see an "unknown accessory" or "liquid detected" error message when you try to charge it.
Iphone Won’T Turn On After Getting Wet – ETDKHL
But don't worry, it's not all doom and gloom - there are a few things you can try to rescue your iPhone. First, turn it off and let it dry out completely - like, for real, just let it chill for a bit. You can also try using a desiccant or uncooked rice to help soak up any excess moisture.