Here is another of those questions that assume as factual something that has not been established as fact.
It is true that SOME people who identify as Christians are afraid of or hate homosexuals. But what makes a Christian is if they follow the teachings of Jesus Christ, and accept his sacrifice as a ransom for their sins.
John 8:31, 32
31 Then Jesus went on to say to the Jews who had believed him: “If you remain in my word, you are really my disciples, 32 and you will know the truth, and the truth will set you free.”
28 Just as the Son of man came, not to be ministered to, but to minister and to give his life as a ransom in exchange for many.”
Jesus did not say "Hate homosexuals" and he never taught anything like that.
But he did teach what things defile someone, and he included in his list fornication, or sexual immorality.
Matthew 15:18, 19
18 However, whatever comes out of the mouth comes from the heart, and those things defile a man. 19 For example, out of the heart come wicked reasonings, murders, adulteries, sexual immorality, thefts, false testimonies, blasphemies.
Sexual immorality is sexual relations with anyone outside of the marital arrangement set up by God. This includes a large number of activities, including adultery, premarital sex, pedophilia, bestiality, etc., and homosexuality. Christians are not under the law of Moses, but that law does define what Jesus meant by that term in Leviticus chapter 18.
The Greek word is porneia, and it relates to the fact that those who practice these things are selling themselves short of the ideal of faithful heterosexual marriage, which God instituted in the Garden of Eden.
24 That is why a man will leave his father and his mother and he will stick to his wife, and they will become one flesh.
In obedience to that guideline, Christians want to please their Lord and Savior Jesus Christ by adhering to this ideal. Doing this is not about fear or hatred of anyone who does not. But it is clear from the Bible that in order to become one of Christ's disciples, one must put aside those practices that defile a person spiritually. Many who did practice these things repented and changed their lives.
1 Corinthians 6:9-11
9 Or do you not know that unrighteous people will not inherit God’s Kingdom?
Do not be misled. Those who are sexually immoral, idolaters, adulterers,
men who submit to homosexual acts, men who practice homosexuality,
10 thieves, greedy people, drunkards, revilers, and extortioners will not inherit God’s Kingdom.
11 And yet that is what some of you were. But you have been washed clean; you have been sanctified; you have been declared righteous in the name of the Lord Jesus Christ and with the spirit of our God.
So this is a matter of hating the sin, but not the sinner. People have and do make changes in their lives, and when they do, Christians accept them as brothers and sisters. Jesus said:
John 13:34, 35
34 I am giving you a new commandment, that you love one another; just as I have loved you, you also love one another. 35 By this all will know that you are my disciples—if you have love among yourselves.”