There seems to be a widely held misconception that water is antithetical to electronics. It’s not, at least not nearly as much as most people think it is.
Very clean, pure water (deionized, for example) is actually a surprisingly good insulator.
It’s when you have things in there other than pure water (salts), that things can get hairy.
In general, if a piece of electronics is powered off and has no battery, it’s perfectly okay to expose it to water, even dirty, salty, or otherwise conductive water, as long as it’s thoroughly and completely clean and dry before you apply power to it again.
This is one of the reasons removable batteries should still be a thing in phones! If your phone takes a dunk, and you pull it out, take the battery out of it immediately, rinse it, and then leave it sitting in a bowl of rice or desiccant for a day or two, chances are good that it will be completely fine afterwards.
I’ve actually gone so far as to remove the keyboard from my laptop after spilling soda on it, take it to the kitchen and give it a good scrub under hot water to remove any soda residue, before drying and reinstalling it. Lasted me another two years after that IIRC, and it wasn’t the keyboard that eventually killed the laptop.
Even with power running through things, in most cases you won’t see sudden death. You can get current leaking where it’s not supposed to, and that can mess with some things, but a lot of digital circuits will just ignore that because it’s below a certain threshold.
The main issue with water and running electronics is corrosion over time. That current leakage will strip metal ions from one side and deposit them elsewhere, eroding pads, leads, and traces, and can even form metallic conductive dendrites that can cause a proper short. The more salty the water is, and the closer the traces are, and the higher the voltage between them, the worse this can be. This usually takes minutes at least, and hours, days, or even weeks at most.
I will mention that this all mostly applies to low-voltage electronics, not line voltage (110-220+VAC). Water and that kind of electricity can be really bad, because the high voltage can cause enough current flow to electrocute a person if they accidentally make a circuit with the water and their body.