The mean is the number that minimizes the sum of the squared deviations. If a distribution is symmetrical, then the median and the mean are the same and the median also minimizes this quantity.