Well... That's something I honestly don't like thinking about.
But for the sake of discussion, let's say pedophilia isn't just a disorder and is seen more like homosexuality. The important question is "Will any harm be inflicted upon someone if a person acts upon the attraction?" In a normal homosexual relationship, both partners are around the same age/of the same emotional maturity and able to consent with enough knowledge of what their actions mean: consequences, understanding of the relationship, etc. As for pedophilia, harm to a child could definitely happen. So... again for the sake of discussion and not a belief I necessarily claim, perhaps the most important thing created by God is choice. The choice on acting upon healthy attractions and not acting upon harmful attractions.