Amazing they could do that with no real knowledge of chemistry.
Same way with gunpowder. You had to mix sulfur, potassium nitrate and charcoal in just the right amounts. Wherever did THAT idea come from? I suspect some alchemist was mixing stuff and of a sudden BOOM! "Hey, what great fireworks it would make!" says he.