It is also great source of knowledge of what to do for example:
how to beat up your slave so to not offend god
what to do if your daughter is raped (spoiler alert sell her to the rapist).
what to do to people having tattoos or wearing mixed fabrics.
It is also a great that non of it contradicts itself: https://infidels.org/library/modern/donald_morgan/contradict...
Bible is what it is, but its not a source of never-ending wisdom. And being treated as holy book gives impetus to bad people to do bad things and feel good about doing it.
Problem with bible is that people clam it was divinely inspired - written by god through human hand. Well it is clearly not. But all it really is a tool in hands of extremists justifying their evil deeds. That's how you have 'thou shall not kill' but wanting all gays to be killed etc.