How would having empty urinals lead to more gun powder in the middle ages?

It wouldn't.

It would, since the ammonia in urine would've been a key componant it gunpowder.

It was also used to make leather, white clothes, dyes, harpstrings, etc