So infuriating!

For some context, I'm a maths applicant applying to all the top unis. I've worked soo hard for all my board and entrance exams, like constant everyday hardwork. Yet my best friend only studies the night before the exam and does better than everyone! Not just better than me, but better than everyone in my school. Dont get me wrong, I'm genuinely happy for him, but it feels soo unfair that some gifted people get to put very little work and always get the best in life.

To give a specific example, I had been preparing for TMUA for 2 months straight and my friend was so underprepared that I had to teach him a lot of the tmua syllabus the night before, AND HE DID FANTASTIC ON THE EXAM, and I underperformed. All my hardwork is in vain and he gets what he wants with almost no work. Why is it so unfair?