That is required by code. It has to be within so many inches of the sink. “Every bathroom must have at least one electrical outlet. It must be a GFCI, and it must be within 3 feet of the edge of the sink.” http://homeguides.sfgate.com/far-electricity-need-sink-83084.html