Musketeers were trained to always replace their ramrods after loading so that they would not leave their ramrods on the field if they were forced to hastily retreat.
Running a lubricated cleaning patch down the barrel with the ramrod would also extinguish any embers, and would clean out some of the barrel fouling as well.