Hanan, interesting question. So, my high school did not have valedictorians or class rankings so I may not be the best person to answer this, but I do have some thoughts on what it takes to be the class valedictorian. You are correct in stating that it is not just a fantastic GPA that will result in you being the valedictorian, it is often your involvement in extracurricular activities, clubs, and leadership positions that will allow you to become the class valedictorian. These kinds of activities show that you are more than just a student, you need to be able to show that you are well rounded in all areas and not just strong in the academic sense.
Leadership is probably the most important aspect of valedictorian status, if you are not part of a club or student government then I would encourage you to do so. These provide you great visibility and the ability to demonstrate your leadership skills.
But do note, not being a valedictorian does not mean that you are a failure of a student; it is just a title and while perhaps nice to have, does not mean that those who aren't are somehow less successful, hardworking, or important. If you become valedictorian, great...if not, that is great as well. There is nothing wrong with being/not being valedictorian.
I hope this helps and I wish you the best of luck.
In my high school, the valedictorian was the student with the highest GPA, and no other factors were part of the selection.
Katie recommends the following next steps: