Maybe our national electrical codes prohibit such electrical devices combined with water/plumbing fixtures.
Such code would be nonsense. How would you make e.g. swimming pools, where you need water, piping, pumps for the filtration systems and with people swimming in it...
The code has just extra provisions on how to make and install these devices (like the pool filtration, Jacuzzi pools, water heaters, as well these fancy toilets). It just bans regular devices not designed for hat purpose (regular sockets, switches, lights,...) to be installed in such water exposed areas.