Well there are a couple of competing theories on that.
One is that there's a pair of omnipotent beings that bring people here for their own whims or amusement. I've never seen either and lean toward some kind of AI with corrupted programming being behind it all. It makes more sense to me.