In the ancient Near East, it was assumed that humanity was created to be the slaves of gods who were capricious and not terribly interested in their lives. As they saw it, the world was arbitrary, unpredictable, and cruel, and humans had no guarantee that their lives were meaningful in any way.