I have two CUs and a lot of other switchgear etc. in a utility room directly underneath a bathroom - and that does not disturb my sleep
It would concern me, I would try to minimise the electrics, below a bathroom, and definitely try to avoid having CU's and any switchgear, meters and etc. under it - the risk is high, and water on such, would make the place uninhabitable. We've suffered one bathroom flood, where a shower where either the shower turned itself on or was left on....
It soaked the bathroom floor, the ceiling below, and the room too. Luckily, the room involved was the downstairs toilet, the only electrics a light, and a light switch. I was able to isolate them, then leave them for a day two to dry out, reconnect, and good as new. It would have been a very different matter, had the CU been under there.
Rather worse than that, but I had a bank which had it's large basement flood, all the d/boars, switchgear, gas and electric meters, below several feet of water. It continued to operate normally, during the several days it took to pump out, then the month it took to replace both meters, and d/board, and switchgear, in stages, each night. It proved an expensive flood.