The 14-year-old-girl, an eighth standard student, narrated her trauma to her teacher when asked why she had fallen behind in her studies.
The teacher immediately lodged a complaint with police, following which the duo were taken into custody last night.
Police said they confessed to their crime, following which they were arrested and remanded to custody.
They said the girl's mother had married again after the death of her husband and had moved to another city, leaving her daughter at the home.