They can't. The median will always be the middle value of a data set. You can increase the max value all you want, and the median will not change. The same applies in the opposite direction.
The mean on the other hand will change (since it's the sum of all the values divided by the number of values)
The mean on the other hand will change (since it's the sum of all the values divided by the number of values)