Why urea is preferred as excretory product in mammals to ammonia ?
Ammonia is more toxic than urea and requires large amount of water for excretion. It cannot be retained for long in the body. In land animals it may result in excessive water. 
However urea is leass toxic and does not need much water for excretion. Thus urea is preffered over ammonia as an excretory product.