Quote: So, what does a deity gain from creating life (Humans)?
Deities are figments of assholes' overactive imaginations. Every culture has a creation myth which explains how they got wherever the fuck they were.
If you study some of these creation myths you will find that the shit in the bible is about par for the course.