From Smithsonian:
The saying goes that one person’s waste is another’s treasure. For those scientists who study urine the saying is quite literal–pee is a treasure-trove of scientific potential. It can now be used as a source of electric power. Uine-eating bacteria can create a strong enough current to power a cell phone. Medicines derived from urine can help treat infertility and fight symptoms of menopause. Stem cells harvested from urine have been reprogrammed into neurons and even used to grow human teeth. For modern scientists, the golden liquid can be, well, liquid gold. But a quick look back in history shows that urine has always been important to scientific and industrial advancement, so much so that the ancient Romans not only sold pee collected from public urinals, but those who traded in urine had to pay a tax. So what about pee did preindustrial humans find so valuable? Here are a few examples:
Urine-soaked leather makes it soft: Prior to the ability to synthesize chemicals in the lab, urine was a quick and rich source of urea, a nitrogen-based organic compound. When stored for long periods of time, urea decays into ammonia. Ammonia in water acts as a caustic but weak base. Its high pH breaks down organic material, making urine the perfect substance for ancients to use in softening and tanning animal hides. Soaking animal skins in urine also made it easier for leather workers to remove hair and bits of flesh from the skin.
The cleansing power of pee: If you’ve investigated the ingredients in your household cleaners, you may have noticed a prevalent ingredient: ammonia. As a base, ammonia is a useful cleanser because dirt and grease–which are slightly acidic–get neutralized by the ammonia. Even though early Europeans knew about soap, many launderers preferred to use urine for its ammonia to get tough stains out of cloth. In fact, in ancient Rome, vessels for collecting urine were commonplace on streets–passers-by would relieve themselves into them and when the vats were full their contents were taken to a fullonica (a laundry), diluted with water and poured over dirty clothes. A worker would stand in the tub of urine and stomp on the clothes, similar to modern washing machine’s agitator.
More here.