Necromancer like the mogu have access to the Spirit realm but death knights are limited to the shadow realm which is a small part of the realm that holds the afterlife. They can use spirits and reanimate them into anything death knights can only reanimate the dead in wow.
- - - Updated - - -
In lore not in game they don't use spirits very well and can't reanimated souls into machines or whatever objects they want like the mogu.