The law was first introduced in the United States because there was concern that teenagers in consensual relationships were being unfairly criminalised for statutory rape.
Source: What Is ‘Romeo-Juliet’ Clause, The Supreme Court Wants Under POCSO Act




