10[His] disciples said to him, “If that is the case of a man with his wife, it is better not to marry.”
11He answered, “Not all can accept [this] word,
* but only those to whom that is granted.
12Some are incapable of marriage because they were born so; some, because they were made so by others; some, because they have renounced marriage
* for the sake of the kingdom of heaven. Whoever can accept this ought to accept it.” Matthew Ch. 19
32I should like you to be free of anxieties. An unmarried man is anxious about the things of the Lord, how he may please the Lord.
33But a married man is anxious about the things of the world, how he may please his wife,
34and he is divided. An unmarried woman or a virgin is anxious about the things of the Lord, so that she may be holy in both body and spirit. A married woman, on the other hand, is anxious about the things of the world, how she may please her husband. [...]
38So then, the one who marries his virgin does well; the one who does not marry her will do better. 1 Corinthians Ch. 7
The tradition of celibate priests is very important to allow for the utmost importance of shepherding his spiritual family. If he has a biological family, his time and attention is divided (priests must be available all the time for things like giving Last Rites). With a wife and children he must choose between fulfilling his duty as priest, and being a present and supporting father (does he choose to spend more time preparing his homily for Sunday or go catch his son's baseball game?). Also, when Christian persecution happens, priests are to lead by example by giving their lives and continuing their faith without fear. That is infinitely easier to do without familial bonds. Homosexuality occurs due to sexual abuse, lack of a father, or a decedent culture that facilitates unrestrained lust. Jesus, the Saints, Tesla, etc. were all made stronger by choosing to be celibate. Choosing that path does not give rise to homosexual feelings unless you never mastered your lust in the first place, in which case you have no business thinking about the priesthood anyways.