Because 35 is an odd number, (location of the median: when the number of samples is odd, the median =(N+ 1)/2).
For example, the median of the five numbers 1, 3, 5, 7 and 9 is 5.
When 7 and 9 randomly become numbers greater than 5, the median remains the same.
Do you understand now?