Chances are good the prosecutor didn't believe the case was strong enough to pursue the actual crime. Perhaps they were lucky the boy decided to take the plea agreement. Who knows. It can be very hard to successfully prosecute a sex crime without significant evidence, beyond just physical evidence.