We dream primarily the same way that we have consciousness...
We dream primarily the same way that we have consciousness of the world for the same reason. Basically, that our brains evolve to simulate reality and to control what's happening around us.