Perhaps the question is generated by a certain view of what Gods are ( or are supposed to be ) ?
In my view, it is an old concept to describe 'forces' - ' inside or out ' .... or even 'psychological complexes ' , the forces of nature , processes in life, etc .
And when they are taken literally , of course, confusions and questions arise , from this literal interpretation perspective .
Regarding being 'born from human imagination' - perhaps , but we need to more fully understand what
human imagination is ... IMO it is the essence of 'soul' . I prefer the statement ; ' God created man but man also created God'. Its a feed back loop, even though we made the concept, it can still effect and mold our actions, ways and beliefs.
A type of ' ethnotheology '

( Ethnobotany is the study of how humans have used, developed and changed certain plants AND how this process, and the consumption and use of those plants has effected our evolution )