The substances move in opposite directions. One ion flows down its gradient into the cell, providing the energy to boot a different molecule out.