Friction basically. In a perfectly idealised version of the system with no friction/slack/materials being deformed/etc, if you started it off then let go then everything would keep spinning forever. You don't need to pump a whole lot of energy into the device to make it go.