Many rule changes over the years have been made to reinforce the need for infantry (as cheap defenders and potential cannon fodder in attacking forces) while trying to prevent overbuildups.
The socialist movement had been historically antimilitarist and internationalist, and therefore opposed workers serving as cannon fodder for the bourgeois governments at war.