Not that God was lonely, but we were created to have communion with Him. This is not a once a month communion as we mostly think, but an exchange of intimate thoughts and feelings. It really hasn't changed since the beginning, has it?
God still desires to have an exchange with believers today. Call it whatever you wish—quiet time, alone time, personal devotions, prayer. They all describe a time when you are with Him, sharing your intimate thoughts, feelings, and desires.
How's your alone time with Him? Oh listen my friend, He's waiting to hear from you.
He created you to commune with Him.
Blessings on your Journey,