Why did God create us? I've heard this question quite a few times. Lets look at a few scriptures to get our answers.
Psalm 8:3-4 - When I consider Your heavens, the work of Your fingers,
The moon and the stars, which You have ordained,
What is man that You are mindful of him,
And the son of man that You visit him?
God doesn't actually need us. The Psalmist in this verses realizes that in these words. God created the universe and our earth in comparison is but a speck. 600 of our suns can fit lined up in the straight line inside the star Betelgeuse.
Acts 17:24-25 - “God, who made the world and everything in it, since He is Lord of heaven and earth, does not dwell in temples made with hands. Nor is He worshiped with men’s hands, as though He needed anything, since He gives to all life, breath, and all things.
God didn't create us out of any kind of specific emotional need either. He doesn't need His 'self esteem' boosted and He certainly doesn't need human worshipers. Our presence doesn't influence in any way Who He is.
So why create beings in His Image? God is a loving and creative God. When God created this universe He graced it with a masterpiece in His image, Man, a being that could recognize Him and respond to Him.
Ephesians 2:10 sums it up nicely. For we are His workmanship, created in Christ Jesus for good works, which God prepared beforehand that we should walk in them.
Should walk in them. It is important to remember that we are not reprogrammed robots in some cosmic game against the Devil. God gave each of us a free will so that we can choose to follow God. God intends for us to do good works for Him but we can choose to walk away. The Bible is full of accounts where the Nation of Israel did not fulfill its intended purpose.