I believe, if there is such a thing as a God it must be a super intelligent force who either wanted to have fun, experiment or just try out something new when he created this universe of ours.
According to scientists the universe is basically too perfect to be random.
Perhaps we live, as Elon Musks says, in a simulation, that everything already is computerised? I for certain believe that humans did not invent AI but that it was already here. It's the intelligence of the universe we just haven't yet been able to tap into it. We've been to dumb obviously. It's the foundation of everything.