Just like the benevolent loving father figure everyone wants to believe he is. *puke* Stories like this from the Bible and the Koran create dangerous ideas and thinking in people. Worshipping someone who would have asshole actions entitles you as a listen, obey and be blessed type to be the same way... or better as voltaire said it:
Those who can make you believe absurdities can make you commit atrocities. - Voltaire