Musket man maybe able to outrange a longbow man, but they are inaccurate, and slow to reload, as well as causing a lot of smoke and a chance of blowing the gunner up. Rifles, are better than bows in most respects, but are only issued to about one in fifty people in the current era. So, while a one vs one in an open plain might not work well, but a hundred vs a hundred would be against the musketeer's favour, since a bowman can loose about three arrows to a single musket ball.