Also slavery. The Bible has lots of moral failings to account for. An excellent read on that topic is “The X-rated Bible”.
https://www.amazon.com/X-Rated-Bible-Irreverant-Survey-Scriptures/dp/0910309191