The mean keeps the total; the median keeps the rank
The mean is the sum divided by the count, and everyone's money goes into it. If the person earning 24,000 gets a 50,000 raise, the sum grows by 50,000 and the mean grows by 10,000, though the other four didn't get a cent more. The median only looks at who is in the middle: however big the raise for the person on 24,000, the third person is still on 7,000. The other way round, if the third person goes from 7,000 to 9,000, they move to fourth place, the 8,000 that used to be fourth becomes the median, and the mean only goes up by 400.
Pick the one that fits the question
If you ask "how much is it all together," the mean times the count gives back the total, and the median can't: 7,000 times 5 is only 35,000, because it has thrown away how big the values at both ends are. If you ask "pick anyone at random, where are they likely to be," the median answers directly: half the people are above it and half below. If you ask "how many people are over a certain line," neither number answers; you have to count. On this team, one person earns more than 10,000 a month, one fifth of them.
When you're asking about an ordinary person's situation and the data has a few very large values, the median is the steadiest. When the data falls into two clusters far apart, neither number works. If half the rents are 1,000 and half are 9,000, the mean is 5,000; the median, the average of the two households right in the middle, is also 5,000, and not one household is anywhere near it. The common fault lies with whoever reports the number: they pick the one that looks good, for instance reporting pay as "an average of 10,000," and readers then take it to be the median.