Components like resistors found inside any device, including the one you are using to view this image, are designed to decrease the electrical current so it can flow through other components without frying them. However, liquids such as water can create a new path that allows the electrical current to skip past these components, creating a short-circuit where the electricity can reach other parts of the device with less resistance, thus frying them. This (as well as corrosion in some cases) is why the device you are using right now would be f*cked if you ran it under a tap for a little bit.
This means that, theoretically, if there is absolutely no electricity flowing through the device or any of it's potentially existing batteries, it could get completely rinsed down with pure water and, once dried completely, will still function perfectly normal.
Despite this, corrosion and small traces of electricity may cause this hypothetical device to still get ruined, so no matter how sure you are that water won't destroy your phone or computer, don't get it wet.