Put 20 cannons loaded up with grapeshot in a row, put 20 of them in a row, fire into the long blocks of infantry used during this period and compare the casualty rating. It's simply not as effective.