I seem to recall that one of the primary distinctions between the development of the canon in the 14th century and prior uses of gunpowder is recognizing its value as a propellant for other objects. Using gunpowder as a mine is far different than using it to propel a cannon ball against walls. And, as others have said, probably requires some more advanced knowledge of metallurgy, although that might have a chicken/egg component to it. Regardless, even if you have gunpowder, it requires a certain "aha!" moment to move into the realm of canons.