Answer:
AFAIK
Step-by-step explanation:
uric acid is much less toxic than ammonia, hence bigger concentrations of it are tolerated in the body. This means you can excrete it while excreting very little water - beneficial wherever water's not abundant.
There's a tradeoff though, uric acid requires more energy to synthesize than ammonia, so pretty much all fish, say, excrete ammonia rather than uric acid - it's no problem to dilute ammonia since there's no water shortage.