The state has different obligations to protect children than they do adults. Which is why we have things like drinking age laws and legal concepts such as in loco parentis.
You are completely removing the agency of adults to make their own choices, and instead, inserting the government into those relationships, under the penalty of incarceration and government sanctioned violence, for the crime of having an unauthorized interpersonal consensual relationship between two adults.
And that's only taking your proposal at face value and ignoring the plethora of unintended consequences, such as perverse political incentives and privatization.