Maturity is one of the critical ingredients for any professional pilot.
Those straight from school are probably at a disadvantage compared to those who have either engaged in higher education, or gain work experience.
You do get a young person straight from school who are sufficiently mature, although it is fairly rare.