My rank improved by 2k But my percentile decreased by 2%ile How it happens?

My rank improved by 2k
But my percentile decreased by 2%ile

How it happens?

Less number of people gave the exam.

But this time more number of candidates given exam 54k

You got 5K rank in 25 k rankers , your percentile would be 80

. If you got 3k and total rankers were were 12k , your percentile would be 75

So may be less people qualified compared to last time

It depends on the number of people attempting also.