I know in mother's old house it did not comply, the socket was likely only 2 meters from the shower, I really do not see a big problem when the floor is carpeted and one is unlikely to really put anything too close to the shower cubical in the bedroom, it really makes no difference if the socket was the full 3 meters everything in the bedroom would be the same, just a longer lead would be used and so cause more not less danger.
I could see the whole idea of not defining the room as a bedroom with shower and saying any room big enough so you could get 3 meters from the shower then allowed a socket, but in the bedroom the shower went in after the socket.
In the bathroom why would you want a socket? It is a bathroom, why we want to shave in the bathroom I don't know, and why you want to charge things where they can fall into the sink? Yes I use an electric tooth brush, but it is charged in bedroom not bathroom, I will admit cutting my beard there is an advantage having a toilet below me to catch the hair, but never stood in the bath to trim my beard, the hair would not go down the plug hole so would need to gather it up anyway.
I know there are some electric teeth cleaners that are hard wired and use more than the 200 VA a shaver socket can deliver, so can see the requirement for a 500 VA shaver type socket in the bathroom.
I bought in the UK a caravan, which has a shower cubical, and the shower cubical is in an area with toilet and sink and wardrobe which has the consumer unit for whole caravan inside the wardrobe, I looked and thought that's shortly not right, but the door on the shower cubical reaches the ceiling, so it actually passes.
So big question is why not make shower cubicles 2.25 meters high? then you could have a socket in the same room.