Literally an 18 year old has the exavt same maturity level as 17 year old yet a relationship between people of this ages is criminalized by society as "grooming".
People act like becoming 18 automatically makes you mature when thats not the case. Growing is a gradual process and maturity comes from experience.