Flesh armies learn on the spot and don't have to be retrained when the enemy devices new strategy. Plus men with minor injuries keep working, while electronics with minor issues are just a bunch of useless steel (see any modern car or modern computer). Plus the opportunity cost, every factory making robots is not making shells.