There's at least one scenario where a receptacle close to a tub can decrease risk. If a teenage girl is determined to use and charge a phone while soaking in the tub, you would want her to plug the charger directly into a receptacle, not use an extension cord that could fall into the tub.