Stock trading is a negative sum game - there are costs for every trade.
> companies essentially battle trading bots against each other
If the bots are trading against each other, but making money from the other market participants then they are not trading against each other - they are trading against the other market participants.
Even further the point: there are more participants in total than the botters