This is because 1st rank will get top external mark as their moderated assessment mark, and hopefully that external mark is their exam mark too. So that's why there's always like one or two UAIs of 100 a year from random schools nobody's heard of, or why the difference between the dux and second person could be at least 5 UAI points away.