"She suddenly returned from her work before time and found the man forcing himself on his daughter," said the investigation officer.
According to the complaint by his second wife, Ram had told the child, a class five student, that it was his right to have a relationship with her and also threatened her to kill if she disclosed the crime.
The accused was sent to jail under judicial custody after he was presented before a district judge on Saturday.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections. Election results will be out on May 23.