No, it's a book of Jewish mythology. The Jews who originally wrote the book considered it impressive that he'd give up his concubine and virgin daughters to be raped to protect his male guests. That's why it's such a common meme. When they were writing it down, it was just an oral tradition. Obviously the people who wrote this down didn't consider themselves divinely inspired.
If God really wrote the bible, why is his style so inconsistent? And why did he choose to make Shakespeare such a better writer than himself? Why did he choose to write in a the bizarre style and including the bizarre moral choices of ancient books of myth? For some reason, God, through his infinite knowledge, has come to produce a book that looks exactly like what we'd expect to see from a desert peoples book of myths. Why is that? Why does God so often choose to do things in a way that common sense, naturalistic explanations could just as easily describe?
Because he doesn't exist. Fool.