>>718416976
>That's the entire reason they marched and fired in massed line formations
It's not the entire reason, since dispersed troops would also have no meaningful protection against cavalry. They'd just get run down and routed with ease.
But then on the other hand, you can't focus too many troops together, because artillery would then be a huge threat.