Certain trades are obvious winners- index funds available for less than the sum of their component parts for example. Everyone on the street knows they are obvious winners, so usually the trade isn't available for long. Firms have computers set up to constantly scan the markets for these opportunities. Whoever sees the trade first and gets to the exchange first ends up making all the money.