The girl, hailing from Rampur district, had come to offer prayers at a tomb along with her grand father where they stayed last night, Superintendent of Police Ratan Kumar Srivastava said.
During patrol duty, a team of Lalpul police brought them to the outpost where she was allegedly raped.
Two police recruits and two police personnel have been arrested in this connection, Srivastasva said.