Why was gunpowder invented in the Song Dynasty? ( )
A.
Gunpowder was invented by a soldier to defend the country.
B.
Gunpowder was invented by an alchemist for the elixir of life
C.
Gunpowder was invented by ordinary people for fun.
D.
Gunpowder was invented by a doctor for medicine.