The Bible is an object, and like any object, it can be used for many purposes.
After the Flood in Genesis 9, Noah planted a vineyard, got drunk and fell asleep naked. Apparently, Noah became angry with Ham, one of Noah’s sons, for telling his brothers about their father’s nakedness and having him covered. It doesn’t seem like that big an offense to me, but in the next verse we find Noah pronouncing a curse on Canaan:
"Cursed be Canaan!
The lowest of slaves
will he be to his brothers." (v9:25)