The Arcane Trickster has a class feature that allows it to use mage hand as it’s Cunning Action. Cunning action is a rogue feature that allows them to use particular skills as a bonus action instead of as an action.