There are a mix of archers, swordsmen, musketeers and cannons because all those units were pretty much used at this time. The guns are less accurate and use longer time to re-load then archers, but do more damage. That's why both were used.
Age of Empires 3 are by the way the first RTS game...