I think that, especially with the "pre-McMansion" era bathrooms, it was not possible to get a 10' clearance for a receptacle. As far as light fixtures, the rule for pools probably has to do with the possibility of contacting a light fixture with a long aluminum vacuum or hand skimmer pole.