The black powder used in flintlocks would quickly foul the barrel, which was a problem for rifles and for smooth bore weapons that fired a tighter fitting round for greater accuracy.
Handling loose black powder was also dangerous, for obvious reasons.