It says a lot of things n the bible that are rubbish and ridiculous in a modern society
Homosexuality is an abomnation : Leviticus 18:22
You can sell your youngest daughter into slavery Exodis 21|:1
You can be put to death for working on the sabbath Exodus 35:2
Touching the skin of a dead pig makes one unclean Leviticus 11:7
You can burn your mother for wearing garments made of two different threads, the town should gather together to stone your brother to death for planting different crops side by side etc.
Just beacuse it is said in the bible does not make it relevant today or mean you have to live by it to be a Christian.