That's not quite true. MAMEUI *is* an emulator. It's MAME with a UI built in.
If you're happy with the MAMEUI interface, there's really no reason to use anything else. The main reason to use command line MAME is flexibility. You can use it with any number of external frontends, which are suited to different setups and tastes.