Why do planets rotate and revolve in the universe?
As the planets evolve during their protoplanetary stage and accrete materials from the protoplanetary disks, which are gravitationally collapsing interstellar dust and gases, these accreted particles retain some of the angular momentum from the materials they form from and being in constant motion.
Generated image (virtual fly-by) from a simulation of the accretion period of the protoplanetary disk, showing preservation of
One nice description for this angular momentum preservation, and why the planets appear to rotate faster than their surrounding protoplanetary disk goes like this:
So it could be described as this axial rotation of planets resulting in conservation of the angular momentum of the materials in the protoplanetary disk, forming during the accretion period of the planetary system as the protoplanets gain in weight, and preserve this angular momentum due to inertia of their radial velocity.