The mean and median both describe aspects of a distribution's 'centre', but their values can differ substantially.
Skew distributions
When the distribution of a batch of values is fairly symmetrical, the mean and median are similar. However if the distribution is skew, then the mean is usually further into the tail of the distribution than the median.
Examples