The Bible doesn’t say that about homosexuality, that’s an invention of modern Christianity. It says it’s an abomination.
Although, I’ve heard (I haven’t looked much into it) that the translation often cited for homosexuality being an abomination actually refers specifically to homosexual child rape, not homosexuality itself.