The ammonia molecules have weaker inter molecular bonds then the hydrogen and nitrogen, this means that the ammonia condensed at a lower temperature so will be a liquid that will be separated from the reaction, while the nitrogen and hydrogen remain as gases so are easy are recycle back into the reacting chamber.