St Andrews is near-Oxbridge level only for some subjects. Many of the other applicants would prefer Warwick, Imperial, UCL, Durham or LSE.
I am simply wondering why they would reject a top applicant with a perfect academic record and instead give an offer to someone who has scored far below him/her?