"Minors" should have less agency than adults, but the state of "minor" vs adult does not follow the plain age. (And of course there exist many dimensions of maturity.)
(In fact, in some educational systems, the final examination in pre-University schools is called "Maturity test".)