That’s actually not that egregious. Statutory rape is a strict liability offense-meaning you violate the law if you have sex with someone underage. There’s no intent required, so it’s no defense that it was an honest mistake, or that the minor consented.