You stay at age 17/18 unless you apply for a role such as Nurse, Shop Owner, etc. It's not because of your rank, It's simply because you're unable to automatically rank up from Grade-12, though the rank glitch does keep you at age 17 unless you apply for other non-highschool roles.