<human>:  How did the musket come to be used in Medieval warfare?
<bot>: The musket was invented in the 17th century and was used in the American Revolutionary War. It was originally designed to be used by foot soldiers, but later it was mounted on a carriage. The first major use of the musket was during the Battle of Bunker Hill, where the British were defeated. The musket was also used in the American Civil War, where it was used by both sides.