They just whack the whole bathroom on an RCD.
Those shaver sockets are on the same circuit as the lights normally.

I suppose if surface mounted there's an incrediably obscure chance that someone could get water down the back of the socket / combined light/socket fitting and contact the actual branch circuit rather than the output of the transformer.