Jagdish and Pappu had allegedly raped the child in a house in an isolated area on Friday night when the girl had gone to a nearby bus stand in search of her father.
Yesterday, Jagdish was spotted near the railway station by the girl's family members who took him to the hospital where the child was being treated.
When the girl identified Jagdish, the family members badly thrashed him. They even tried to tie him with a pole but he fell unconscious, police said.
Later, he was rescued by police who placed him under arrest and took him to hospital for a medical check up.
The other accused Pappu has been arrested.