Pedophilia is a psychological disorder (and largely environment/nurture-related)
That's the opposite of what it says in the wiki link you cited on pedophillia.
"More recent prospective longitudinal research... has demonstrated that the cycle of violence theory is not an adequate explanation for why people molest children"
While the role of genetics vs. environment is heavily debated and far from certain (in regards to all aspects of orientation), that article concludes "They indicated that, because they previously found mothers of pedophiles to be more likely to have undergone psychiatric treatment,[37]
the genetic possibility is more likely".
The distinction between pedophilia as a disorder and homosexuality as not, is purely political and based on value judgements of normality, and how easily these people are respectively able to live in society.
Which is a fair way to classify a disorder, based on outcomes rather than causes.